Welcome Guest, Not a member yet? Register   Sign In
Caching an ACL Object
#1

[eluser]zackwragg[/eluser]
Hi all,

After having implemented Zend_ACL in my codeigniter application, I am looking to serialize the ACL object and cache it to cut down on the various overheads that can create as it gets bigger.

My question is, is there any benefit in using the Zend_Cache libraries to do this, over just using the PHP serialize function and using CodeIgniter's file helper to store it in a file. I can then use the CI file helpers to pull it out of the file and unserialize it.

Thanks for the help.
#2

[eluser]uptime[/eluser]
How big is the site?

Are you sure you need to cache it?

Is your MySQL cache activated and configured properly?
#3

[eluser]zackwragg[/eluser]
I'm not gonna lie, I've never cached a thing before in my life so not sure about MySQL caching. I'll have a read up on that.

The site is potentially going to be quite big. In the tens of thousands of users. I was concerned about the memory load of ACL and someone in another post suggested I use Zend_Cache to make the ACL much more efficient.
#4

[eluser]uptime[/eluser]
MySQL cache *should* be done by your hosting company.

I guess you should cache it if you think the data needs to be cached...

I work with a (news) site that has 100,000+ unique visitors a month, we use memcache for a lot of the content (mostly on the homepage and latest entries).




Theme © iAndrew 2016 - Forum software by © MyBB