Did you end up solving your problem? If so, what did you do? You made me realize the views counter we wrote in one of our app does not work, :(
I'm not a fan of the requestAction thingy, doesnt it load a full instance of CakePHP just for one extra request? On 24 mar, 05:35, depi <erik.gye...@gmail.com> wrote: > 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 cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---