public function clearCache(Core $core, $olderThan = - 1)
    {
        $cachedFile = $this->getCacheFilename($core);

        return !file_exists($cachedFile) || (filectime($cachedFile) < (time() - $olderThan) && unlink($cachedFile));
    }
public function clearCache(Core $core, $olderThan = - 1)
    {
        $cachedFile = $this->getCacheFilename($core);

        return !file_exists($cachedFile) || (filectime($cachedFile) < (time() - $olderThan) && unlink($cachedFile));
    }
public function clearCache ( Core $ core , $ olderThan = - 1 ) { $ cachedFile = $ this -> getCacheFilename ( $ core ) ; return ! file_exists ( $ cachedFile ) || ( filectime ( $ cachedFile ) < ( time ( ) - $ olderThan ) && unlink ( $ cachedFile ) ) ; }
Clears the cached template if it's older than the given time.

@param Core $core      the dwoo instance that was used to cache that template
@param int  $olderThan minimum time (in seconds) required for the cache to be cleared

@return bool true if the cache was not present or if it was deleted, false if it remains there
Clears the cached template if it s older than the given time .