protected function getCacheFilePath($subdir, $filename, $forceOriginalFile = false, $hashed_options = null)
    {
        $path = $this->getCachePath($subdir);

        $safe_filename = preg_replace("[^:alnum:\-\._]", "-", strtolower(basename($filename)));

        // Keep original safe name if no tranformations are applied
        if ($forceOriginalFile || $hashed_options == null) {
            return sprintf("%s/%s", $path, $safe_filename);
        } else {
            return sprintf("%s/%s-%s", $path, $hashed_options, $safe_filename);
        }
    }
protected function getCacheFilePath($subdir, $filename, $forceOriginalFile = false, $hashed_options = null)
    {
        $path = $this->getCachePath($subdir);

        $safe_filename = preg_replace("[^:alnum:\-\._]", "-", strtolower(basename($filename)));

        // Keep original safe name if no tranformations are applied
        if ($forceOriginalFile || $hashed_options == null) {
            return sprintf("%s/%s", $path, $safe_filename);
        } else {
            return sprintf("%s/%s-%s", $path, $hashed_options, $safe_filename);
        }
    }
protected function getCacheFilePath ( $ subdir , $ filename , $ forceOriginalFile = false , $ hashed_options = null ) { $ path = $ this -> getCachePath ( $ subdir ) ; $ safe_filename = preg_replace ( "[^:alnum:\-\._]" , "-" , strtolower ( basename ( $ filename ) ) ) ; // Keep original safe name if no tranformations are applied if ( $ forceOriginalFile || $ hashed_options == null ) { return sprintf ( "%s/%s" , $ path , $ safe_filename ) ; } else { return sprintf ( "%s/%s-%s" , $ path , $ hashed_options , $ safe_filename ) ; } }
Return the full path of the cached file

@param  string $subdir the subdirectory related to cache base
@param  string $filename the filename
@param  boolean $forceOriginalFile if true, the original file path in the cache dir is returned.
@param  string $hashed_options a hash of transformation options, or null if no transformations have been applied
@return string  the cache directory path relative to Web Root
Return the full path of the cached file