In some controller actions I do an UPDATE table SET nviews = nviews +
1 WHERE id = '{$id}' to keep track of how often the page gets viewed
(for each record). Now I want to cache some of these actions, and I
was wondering what would be the best way to keep counting pageviews.
The first way I can think of is to put nocache tags in the view around
a requestaction that would do the update query, but that would be a
"dirty" way to do it. Maybe something with a before filter?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---