static function hasCompiledTemplate($key, $timestamp, &$resourceData) { if (!eZTemplateCompiler::isCompilationEnabled()) { return false; } if (eZTemplateCompiler::alwaysGenerate()) { return false; } $cacheFileName = eZTemplateCompiler::compilationFilename($key, $resourceData); $php = new eZPHPCreator(eZTemplateCompiler::compilationDirectory(), $cacheFileName, eZTemplateCompiler::TemplatePrefix()); $canRestore = $php->canRestore($timestamp); $uri = false; if ($canRestore) { eZDebugSetting::writeDebug('eztemplate-compile', "Cache hit for uri '{$uri}' with key '{$key}'", 'eZTemplateCompiler::hasCompiledTemplate'); } else { eZDebugSetting::writeDebug('eztemplate-compile', "Cache miss for uri '{$uri}' with key '{$key}'", 'eZTemplateCompiler::hasCompiledTemplate'); } return $canRestore; }