Store View Cache in APC or Memcached
I'm pretty familiar with caching in Cake. I regularly cache queries in the model (I stuff them into RAM via APC) and I also cache views. However, no matter how I setup my cache engines (they're all using APC) the views are always cached to disk.
I've dug through the CacheHelper in the core and also rifled through the Cache component and I don't see anywhere to force the issue.
How can I get my view cache into memory instead of on disk?
Thanks,
D
Asked by Darren, on 11/12/09
1 Answer
I stumbled upon the same "problem". Views are stored only to disk. Regarding to http://www.pseudocoder.com/archives/2009/03/17/8-ways-to-speed-up-cakephp-apps/ this seems to be by design "at the moment (1.2.1.8004) view caching uses file based caching and is independent of the cache library described in #2 ." Not really an answer but I thought this article might clear things up a bit.
Answered by lars1968on 23/12/09
http://github.com/mcurry/html_cache is a great approach. But on our xen VMs we have a slow filesystem. So it would be nice to have views cached in RAM. Maybe this can help us out:
http://www.thompsonbd.com/blog/entry/view/giving_cakephp_memcached_caching_abilities
lars1968 - on 10/1/10
Your Answer
You can use Creole Wiki Syntax to format your text.
Tagged with
Rating
1
Viewed
859 times
Last Activity
on 10/1/10