caching\FileCache gc()

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.

doc_Yii
2016-10-30 16:54:06
Comments
Leave a Comment

Please login to continue.