Zepi/Web/General/src/Manager/AssetCacheManager.php
public function generateCachedFile($type, $fileName)
    {
        $isValid = $this->validateCache($fileName);
                
        // If the cache isn't valid, we build the cache
        $result = $isValid;
        if (!$isValid) {
            $result = $this->buildFileCache($type, $fileName);
        }
        
        // If the cache is valid, load the file
        if ($result) {
            $hash = $this->getHash($fileName);
            return $this->cachedFiles[$hash];
        }
        
        return false;
    }
public function generateCachedFile($type, $fileName)
    {
        $isValid = $this->validateCache($fileName);
                
        // If the cache isn't valid, we build the cache
        $result = $isValid;
        if (!$isValid) {
            $result = $this->buildFileCache($type, $fileName);
        }
        
        // If the cache is valid, load the file
        if ($result) {
            $hash = $this->getHash($fileName);
            return $this->cachedFiles[$hash];
        }
        
        return false;
    }
public function generateCachedFile ( $ type , $ fileName ) { $ isValid = $ this -> validateCache ( $ fileName ) ; // If the cache isn't valid, we build the cache $ result = $ isValid ; if ( ! $ isValid ) { $ result = $ this -> buildFileCache ( $ type , $ fileName ) ; } // If the cache is valid, load the file if ( $ result ) { $ hash = $ this -> getHash ( $ fileName ) ; return $ this -> cachedFiles [ $ hash ] ; } return false ; }
Generates a cached file for the given type and base file.

@access public
@param string $type
@param string $fileName
@return string|false
Generates a cached file for the given type and base file .