If you are trying to cache your homepage view eg "/", you'll find this
doesn't work (with older cakephp installs). Newer versions (at least
in 1.2) allow this. The problem is caused by the method used to
generate the cache filename, as described here.
http://www.pseudocoder.com/archives/2007/02/21/cakephp-cache-workarounds-part-1/

However, having said that you could get away with not caching the
view, but just caching the individual data arrays instead (assuming
your database is the bottleneck).

Cheers,
Adam

On Apr 17, 4:03 pm, Andres Monroy-Hernandez <[EMAIL PROTECTED]>
wrote:
> As a follow up to a discussion with some people in #cakephp, here I am
> posting a problem I'm having with caching.
>
> Since my site was featured on cakephp.org I've been getting even more
> traffic so caching would be greatly appreciated :)
>
> In in core.php I have:
> define('CACHE_CHECK', true);
>
> In my home_controller.php I have:
>
> var $helpers = array("Tagcloud", 'Cache' );
> var $cacheAction = "+1 hour";.
> // I have also tried
> // var $cacheAction = "1 hour";.
> // and even var $cacheAction = '1260'
>
> I already did chmod -R 777 app/tmp so permissions shouldn't be an
> issue.
>
> However, after all this, nothing gets created under app/tmp/cache/
> views
>
> I'm using the instructions athttp://manual.cakephp.org/chapter/view_cache
> and I'm running the latest stable version of CakePHP.
>
> Multiple people have recommended to upgrade to beta, unfortunately I
> don't think I'll have the time to do that in the next few weeks due to
> some incompatibilities I found when trying to do that. Plus, this
> should work on 1.1, shouldn't it?
>
> Here is my controller in case anyone wants to see 
> it:http://scratch.mit.edu/home_controller.txt
>
> Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to