/** * Unlink (delete) cache files - only the two current ones! * * @return integer Number of files which were tried to be removed. */ function removeCacheFiles() { $cacheFiles = t3lib_extMgm::currentCacheFiles(); $out = 0; if (is_array($cacheFiles)) { reset($cacheFiles); while (list(, $cfile) = each($cacheFiles)) { unlink($cfile); clearstatcache(); $out++; } } return $out; }