mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
CakePHP 2 fork that supports PHP 8
de46dc7fdc
Revision: [2275] Change the way the cacheAction arrays can be set. var $cacheAction = array('action/params/' => time); Multiple params are allowed, will only cache params level and deeper (action/params/params/) var $cacheAction = array('action/' => time); Setting to just the method without any params will cache all request to that method. var $cacheAction = string; Will set cache time for entire class. Both settings can be used in the Controller::method(). $this->cacheAction = array() or string; Revision: [2274] Changed clearCache function to allow using url like param setting for cache. Example: One of the following can be used. clearCache('controller'); Will remove all cached pages that have the controller name. clearCache('controller/action/'); Will remove all cached pages that have the controller_action name. clearCache('controller/action/params'); Will remove all cached pages that have the controller_action_params name. Note you can have multiple params clearCache(array('controller/action/params','controller2/action/params)); You can also use and array to set more than one value, same setting as above apply to arrays. git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2276 3807eeeb-6ff5-0310-8944-8be069107fe0 |
||
---|---|---|
app | ||
cake | ||
.htaccess | ||
index.php | ||
VERSION.txt |