I am relatively new to cakephp but actively involved in 2 reasonably
sized projects.
In one project, I really need the caching to work to improve
performance.
However, I am having no luck whatsoever.  I have enabled the cache in
the config/core.php by uncommenting the
'Configure::write('Cache.check', true);'.
I have also added the following to my controller :-
'var $cacheAction=array('Images/view/'=>'21600');'

After initially trying:
'var $cacheAction=array('view/'=>'21600');'

But, nothing is appearing in my cache folder.  I have verified that
php can write to the folder and it can - no problems at all.  In my
development environment, I run apache very insecurely (as my user !)
so that I do not have any permission problems.

I ran it through the debugger and I can see that the view's _render
method optionally requires a '$cached' parameter which is not passed
by the 'render' method, therefore it is defaulting to false, which I
believe prevents the cache from being written.

I would really appreciate any help that you can offer on this one.

Many Thanks

Gary

--~--~---------~--~----~------------~-------~--~----~
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