CakePHP 2 fork that supports PHP 8
Find a file
phpnut de46dc7fdc Merging fixes and enhancements into trunk.
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
2006-03-12 18:32:09 +00:00
app Merging fixes and enhancements into trunk. 2006-03-12 00:32:20 +00:00
cake Merging fixes and enhancements into trunk. 2006-03-12 18:32:09 +00:00
.htaccess Merging fixes and enhancements into trunk 2006-02-18 23:42:21 +00:00
index.php Merging fixes and enhancements into trunk. 2006-02-28 19:45:28 +00:00
VERSION.txt Merging fixes and enhancements into trunk. 2006-03-12 18:32:09 +00:00