]> git.mxchange.org Git - mailer.git/blobdiff - inc/filters.php
Flushing template cache is anoying while developing templates, now we can 'debug...
[mailer.git] / inc / filters.php
index 40fb713d99717057726f740728e1541e1455260b..aeb90d935130489d4aa31d547df3baf99c6c7267 100644 (file)
@@ -591,9 +591,12 @@ function FILTER_DETERMINE_WHAT_ACTION () {
                        if (isGetRequestElementSet('module')) {
                                // Set module from request
                                setModule(getRequestElement('module'));
-                       } else {
+                       } elseif (getOutputMode() == '0') {
                                // Set default module 'index'
                                setModule('index');
+                       } else {
+                               // Unknown module
+                               setModule('unknown');
                        }
                } // END - if
 
@@ -845,12 +848,15 @@ 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
                foreach ($GLOBALS['template_eval'] as $template=>$eval) {
                        // Flush the cache (if not yet found)
-                       //flushTemplateCache($template, $eval);
+                       flushTemplateCache($template, $eval);
                } // END - if
        } // END - if
 }