Cache_Lite::clean() -- Clean the cache
Description
if no group is specified all cache files will be destroyed ; else only
cache files of the specified group will be destroyed
Parameter
- string
$group
name of the cache group
Return value
returns true if no problem
Note
This function can not be called
statically.
Example
Example 23-1. classical using <?php
require_once "Cache/Lite.php";
$options = array('cacheDir' => '/tmp/');
$cache = Cache_Lite($options);
$cache->clean();
?> |
|
This example cleans all of the cache files.