src/AssetManager/View/Helper/Asset.php
private function getFilePathFromCache($filename, $queryString)
    {
        // return if cache not found
        if ($this->cache == null) {
            return null;
        }

        // cache key based on the filename
        $cacheKey = md5($filename);
        $itemIsFoundInCache = false;
        $filePath = $this->cache->getItem($cacheKey, $itemIsFoundInCache);

        // if there is no element in the cache, elaborate and cache it
        if ($itemIsFoundInCache === false || $filePath === null) {
            $filePath = $this->elaborateFilePath($filename, $queryString);
            $this->cache->setItem($cacheKey, $filePath);
        }

        return $filePath;
    }
private function getFilePathFromCache($filename, $queryString)
    {
        // return if cache not found
        if ($this->cache == null) {
            return null;
        }

        // cache key based on the filename
        $cacheKey = md5($filename);
        $itemIsFoundInCache = false;
        $filePath = $this->cache->getItem($cacheKey, $itemIsFoundInCache);

        // if there is no element in the cache, elaborate and cache it
        if ($itemIsFoundInCache === false || $filePath === null) {
            $filePath = $this->elaborateFilePath($filename, $queryString);
            $this->cache->setItem($cacheKey, $filePath);
        }

        return $filePath;
    }
private function getFilePathFromCache ( $ filename , $ queryString ) { // return if cache not found if ( $ this -> cache == null ) { return null ; } // cache key based on the filename $ cacheKey = md5 ( $ filename ) ; $ itemIsFoundInCache = false ; $ filePath = $ this -> cache -> getItem ( $ cacheKey , $ itemIsFoundInCache ) ; // if there is no element in the cache, elaborate and cache it if ( $ itemIsFoundInCache === false || $ filePath === null ) { $ filePath = $ this -> elaborateFilePath ( $ filename , $ queryString ) ; $ this -> cache -> setItem ( $ cacheKey , $ filePath ) ; } return $ filePath ; }
Use the cache to get the filePath

@param string $filename
@param string $queryString

@return mixed|string
Use the cache to get the filePath