Although documented , CakePHP will automatically clear view caches when updating the model, it is not.
It is important to remember that Cake will clear the cached view if the model used in the cached view is changed. For example, if the cached view uses data from the Post model and an INSERT, UPDATE, or DELETE request has been added to the message, the cache for this view is cleared and new content is generated the next time it is requested.
Even calling the proposed method Cache::clear()manually does nothing. How to clear view cache in Cake?
(Starting with the version 1.2.2.8120. Looking at the repository, it should have such a problem .8256.)
source
share