Monday, November 1, 2010

How can let Cakephp don't clear view cache when related models changed?

How can let Cakephp don't clear view cache when related models
changed?

For example, I have a Food model and the follow views those use the
Food model:

/foods/index.ctp
/foods/list.ctp
/foods/view.ctp

I turn on view cache setting for all the three actions.

When someone request the url /foods/index or /foods/list,cakephp
generates cached files.

When someone request the url /foods/view,I update the click_count
column of the model Food. And, cakephp clear the previous cache files
automatic.

But I wanna save the cache files for 24 hours. I hope cakephp don't to
clear the cached files when related model changed (I just update the
model's click_count.) . How can I do it?


Thanks for some answers.

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

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 For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: