Flushing template cache is anoying while developing templates, now we can 'debug...
[mailer.git] / inc / filters.php
index 20dae9fdb550520baea88f911f4ebd918990ba42..aeb90d935130489d4aa31d547df3baf99c6c7267 100644 (file)
@@ -848,6 +848,9 @@ function FILTER_DISPLAY_PARSING_TIME () {
 
 // Filter for flushing template cache
 function FILTER_FLUSH_TEMPLATE_CACHE () {
+       // Do not flush when debugging the template cache
+       if (isDebuggingTemplateCache()) return;
+
        // Do we have cached eval() data?
        if ((isset($GLOBALS['template_eval'])) && (count($GLOBALS['template_eval']) > 0)) {
                // Now flush all