lithium\storage\Cache::clean()
Perform garbage collection on specified cache configuration. All invalidated cache keys - without honoring a configured scope - from the specified configuration are removed.
Parameters
-
string
$name
The cache configuration to be cleaned.
Returns
booleantrue
on successful cleaning, false
if failed partially or entirely.
Source
public static function clean($name) {
try {
return static::adapter($name)->clean();
} catch (ConfigException $e) {
return false;
}
}