public function cacheFileIfChanged($path)
    {
        $outputFile = $path;
        if (!$this->isCacheUpToDate($outputFile)) {
            $compiler = $this->getRenderer()->getCompiler();

            return $this->cacheFileContents(
                $outputFile,
                $compiler->compileFile($path),
                $compiler->getCurrentImportPaths()
            );
        }

        return true;
    }
public function cacheFileIfChanged($path)
    {
        $outputFile = $path;
        if (!$this->isCacheUpToDate($outputFile)) {
            $compiler = $this->getRenderer()->getCompiler();

            return $this->cacheFileContents(
                $outputFile,
                $compiler->compileFile($path),
                $compiler->getCurrentImportPaths()
            );
        }

        return true;
    }
public function cacheFileIfChanged ( $ path ) { $ outputFile = $ path ; if ( ! $ this -> isCacheUpToDate ( $ outputFile ) ) { $ compiler = $ this -> getRenderer ( ) -> getCompiler ( ) ; return $ this -> cacheFileContents ( $ outputFile , $ compiler -> compileFile ( $ path ) , $ compiler -> getCurrentImportPaths ( ) ) ; } return true ; }
Cache a template file in the cache directory if the cache is obsolete.
Returns true if the cache is up to date and cache not change,
else returns the number of bytes written in the cache file or false if
a failure occurred.

@param string $path

@return bool|int
Cache a template file in the cache directory if the cache is obsolete . Returns true if the cache is up to date and cache not change else returns the number of bytes written in the cache file or false if a failure occurred .