Wednesday, September 5, 2012

View caching for the homepage in the PagesController doesn't seem to work

I've set up view caching successfully for other controller/actions in my Cake application.  But PagesController does not seem to cache anything at all.

At the top of PagesController.php I have:

var $cacheAction = array (
  'display/index/' => array('callbacks' => false, 'duration' => '+1 week'),
'index' => array('callbacks' => false, 'duration' => '+1 week'),
'/' => array('callbacks' => false, 'duration' => '+1 week'),
 
);

But still, when I visit the homepage either through '/' or '/pages/index/' -- nothing caches.

Does the PagesController follow different rules than other controllers when it comes to view caching?  I am at a loss...

--
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.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
 
 

No comments: