开发者

How to manually refresh Model Cache when debug == 0?

Whenever I make changes to the database on the production version of my CakePHP site, where debug is set to 0, the changes are not reflected. I know I can get around this by temporarily changing debug to 2, but this seems insecure, when this site is being visited by a large number of people. I have looked at the cache files, but since there is no database cache file for the model in question yet (since when debug is 0, it does not refresh this often), there is nothing for me to delete. Does this make sense? I want 开发者_开发技巧to be able to refresh the cache without having to set a higher debug level. Thanks!


You can use the Clear Cache plugin:

https://github.com/ceeram/clear_cache/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜