code/libraries/joomlatools/library/template/engine/abstract.php
public function isCached($file)
    {
        $result = false;

        if($this->_cache)
        {
            $hash   = crc32($file.PHP_VERSION);
            $cache  = $this->_cache_path.'/template_'.$hash.'.php';
            $result = is_file($cache) ? $cache : false;

            if($result && $this->_cache_reload && is_file($file))
            {
                if(filemtime($cache) < filemtime($file)) {
                    $result = false;
                }
            }
        }

        return $result;
    }
public function isCached($file)
    {
        $result = false;

        if($this->_cache)
        {
            $hash   = crc32($file.PHP_VERSION);
            $cache  = $this->_cache_path.'/template_'.$hash.'.php';
            $result = is_file($cache) ? $cache : false;

            if($result && $this->_cache_reload && is_file($file))
            {
                if(filemtime($cache) < filemtime($file)) {
                    $result = false;
                }
            }
        }

        return $result;
    }
public function isCached ( $ file ) { $ result = false ; if ( $ this -> _cache ) { $ hash = crc32 ( $ file . PHP_VERSION ) ; $ cache = $ this -> _cache_path . '/template_' . $ hash . '.php' ; $ result = is_file ( $ cache ) ? $ cache : false ; if ( $ result && $ this -> _cache_reload && is_file ( $ file ) ) { if ( filemtime ( $ cache ) < filemtime ( $ file ) ) { $ result = false ; } } } return $ result ; }
Check if a file exists in the cache

@param string $file The file name
@return string|false The cache file path. FALSE if the file cannot be found in the cache
Check if a file exists in the cache