public function getCachePathForResource(string $resource)
    {
        if (!$this->cacheDir) {
            return false;
        }

        return str_replace($this->appDir, $this->cacheDir, $resource);
    }
public function getCachePathForResource(string $resource)
    {
        if (!$this->cacheDir) {
            return false;
        }

        return str_replace($this->appDir, $this->cacheDir, $resource);
    }
public function getCachePathForResource ( string $ resource ) { if ( ! $ this -> cacheDir ) { return false ; } return str_replace ( $ this -> appDir , $ this -> cacheDir , $ resource ) ; }
Returns cache path for requested file name

@return bool|string
Returns cache path for requested file name