Monday, July 26, 2010

Re: Element caching using memcache

On Mon, Jul 26, 2010 at 1:31 PM, majna <majnaggz@gmail.com> wrote:
> Andy Gale,
> you can't cache elements  and views in cache engine (1.2 or 1.3,
> because Cache::read() and Cache::Write is not even used here).
> It requires refactoring cache() and clearCache() functions
> (basics.php) to implement memcache.
>
> Also, clearCache() calls form Model class deletes all cached elements
> and views which contains Model name (or associated models names)
> in a cache "key". Let userland code decide that!?

Of course it uses a file cache for that whatever you put in for the
cache engine. Which is why we bypassed the requestAction stuff when we
implemented our caching system. What are the reasons why the cache
engine isn't used there? Seems a bit of a no-brainier to me.

--
Andy Gale
http://andy-gale.com
http://twitter.com/andygale

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: