// Reads a template cache
function readTemplateCache ($template) {
// Check it again
- if ((isDebuggingTemplateCache() === false) && (isTemplateCached($template))) {
+ if ((isDebuggingTemplateCache()) || (!isTemplateCached($template))) {
+ // This should not happen
+ debug_report_bug('Wether debugging of template cache is enabled or template ' . $template . ' is not cached while expected.');
+ } // END - if
+
+ // Is it cached?
+ if (!isset($GLOBALS['template_eval'][$template])) {
// Generate FQFN
$FQFN = generateCacheFqfn($template);