]> git.mxchange.org Git - mailer.git/blobdiff - inc/filters.php
Template cache introduced to shortcut expensive compileCode() calls:
[mailer.git] / inc / filters.php
index 5f6b9eed8424fb610d9d5f789149beb54ea59005..fab11f202f6bb03bcebe0187de8b31dfba784e04 100644 (file)
@@ -832,5 +832,17 @@ function FILTER_DISPLAY_PARSING_TIME () {
        } // END - if
 }
 
+// Filter for flushing template cache
+function FILTER_FLUSH_TEMPLATE_CACHE () {
+       // Do we have cached eval() data?
+       if ((isset($GLOBALS['template_eval'])) && (count($GLOBALS['template_eval']) > 0)) {
+               // Now flush all
+               foreach ($GLOBALS['template_eval'] as $template=>$eval) {
+                       // Flush the cache (if not yet found)
+                       flushTemplateCache($template, $eval);
+               } // END - if
+       } // END - if
+}
+
 // [EOF]
 ?>