I am using CakePHP 1.3 and trying to turn on the cache for viewing pages, the caching system works fine and caches all pages. But when we add a new record (insert a new record into the database) or edit the old one (update the table record) CakePHP deletes all cached pages, not just the edited page!
app / config / core.php:
Cache::config('default', array('engine' => 'File','duration' => 8640000));
app / controllers / articles_controller.php:
var $helpers = array('Cache');
var $cacheAction = array(
'view' => array('duration' => 8640000),
'latest' => array('duration' => 8640000),
);
How can I tell Cake to delete only the cached version of the modified page, and not all cached pages?
source
share