Hi Cake bakers smile.gif
I'm new to Caching and I would like to use it in my new CakePHP
application, however one small problem emerged during its development:
I have a controller where I used for example:
var $cacheAction = '5 minutes'; // so this should cache all actions of
that controller
or
var $cacheAction = array('details/' => '5 minutes');
But the problem is that in one of the controllers, I'm counting the
numbers of views (of a page), but when caching is enabled it can't
count them.
// update page views
$this->Site->updateAll(array('Site.page_views' => 'Site.page_views
+1'), array('Site.id' => $id));
What is the right Cake way to disable caching for this particular
process? Turn on caching only for particular actions and move the
counting process to some private action.....I like the no-cache tags
for the views, it would be great if something like this would be there
for controllers as well smile.gif
Any hints would be really appreciated.
Thank you in advance.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---