Zepi/Web/General/src/Manager/AssetCacheManager.php
protected function validateCache($fileName)
    {
        $hash = $this->getHash($fileName);
        if (!file_exists($fileName) || !isset($this->cachedFiles[$hash])) {
            return false;
        }
        
        $fileChecksum = md5_file($fileName);
        $cachedChecksum = $this->cachedFiles[$hash]['checksum'];
        
        if ($fileChecksum != $cachedChecksum) {
            return false;
        }
        
        return true;
    }
protected function validateCache($fileName)
    {
        $hash = $this->getHash($fileName);
        if (!file_exists($fileName) || !isset($this->cachedFiles[$hash])) {
            return false;
        }
        
        $fileChecksum = md5_file($fileName);
        $cachedChecksum = $this->cachedFiles[$hash]['checksum'];
        
        if ($fileChecksum != $cachedChecksum) {
            return false;
        }
        
        return true;
    }
protected function validateCache ( $ fileName ) { $ hash = $ this -> getHash ( $ fileName ) ; if ( ! file_exists ( $ fileName ) || ! isset ( $ this -> cachedFiles [ $ hash ] ) ) { return false ; } $ fileChecksum = md5_file ( $ fileName ) ; $ cachedChecksum = $ this -> cachedFiles [ $ hash ] [ 'checksum' ] ; if ( $ fileChecksum != $ cachedChecksum ) { return false ; } return true ; }
Returns false, if the cached version of the given
file isn't up to date.

@access protected
@param string $fileName
@return boolean
Returns false if the cached version of the given file isn t up to date .