Cache_Lite::remove | Cache_Lite::setToDebug |
Cache_Lite | |
PEAR Manual | |
require_once 'Cache/Lite.php'; |
boolean Cache_Lite::clean (
string
$group = FALSE
,
string
$mode = 'ingroup';
)
if no group is specified all cache files will be destroyed ; else only cache files of the specified group will be destroyed
name of the cache group
flush cache mode : 'old' (clean too old cache files for the current lifetime), 'ingroup' (clean all cache files for the given group), 'notingroup' (clean all the cache files except for the given group), [since 1.5.0 beta] 'callback_myFunc' (call the function 'myFunc' with the complete path file and the group in parameters, if the callback return 'true', the cache file is deleted).
returns true if no problem
This function can not be called statically.
Usage
|
This example cleans all of the cache files.
Cache_Lite::remove | Cache_Lite::setToDebug |
Cache_Lite | |
PEAR Manual | |