cakephp2-php8/cake/libs
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
..
controller Merging fixes and enhancements into trunk. 2006-03-12 06:58:53 +00:00
model Merging fixes and enhancements into trunk. 2006-03-12 09:31:36 +00:00
view Merging fixes and enhancements into trunk. 2006-03-12 18:32:09 +00:00
bake.php Merging fixes and enhancements into trunk. 2006-02-25 19:20:18 +00:00
cache.php Merging fixes and enhancements into trunk 2006-02-18 23:42:21 +00:00
cake_log.php Merging fixes and enhancements into trunk 2006-02-18 23:42:21 +00:00
class_registry.php Merging fixes and enhancements into trunk. 2006-03-12 00:11:40 +00:00
error.php Merging fixes and enhancements into trunk 2006-02-01 13:26:23 +00:00
file.php Merging fixes and enhancements into trunk 2006-02-18 23:42:21 +00:00
flay.php Merging fixes and enhancements into trunk 2006-02-18 23:42:21 +00:00
folder.php Merging fixes and enhancements into trunk 2006-02-18 23:42:21 +00:00
inflector.php Merging fixes and enhancements into trunk 2006-02-18 23:42:21 +00:00
legacy.php Merging fixes and enhancements into trunk 2006-02-18 23:42:21 +00:00
neat_array.php Merging fixes and enhancements into trunk 2006-02-18 23:42:21 +00:00
neat_string.php Merging fixes and enhancements into trunk 2006-02-18 23:42:21 +00:00
object.php Merging fixes and enhancements into trunk. 2006-02-28 07:35:01 +00:00
router.php Merging fixes and enhancements into trunk 2006-02-18 23:42:21 +00:00
sanitize.php Merging fixes and enhancements into trunk. 2006-03-12 00:11:40 +00:00
security.php Merging fixes and enhancements into trunk. 2006-03-08 03:13:32 +00:00
session.php Merging fixes and enhancements into trunk. 2006-03-01 19:13:48 +00:00
validators.php Merging fixes and enhancements into trunk 2006-02-18 23:42:21 +00:00