gc() public method
Removes expired cache files.
public void gc ( $force = false, $expiredOnly = true ) | ||
---|---|---|
$force | boolean |
Whether to enforce the garbage collection regardless of $gcProbability. Defaults to false, meaning the actual deletion happens with the probability as specified by $gcProbability. |
$expiredOnly | boolean |
Whether to removed expired cache files only. If false, all cache files under $cachePath will be removed. |
Please login to continue.