Caching of filters added (should work now)
[mailer.git] / inc / modules / admin / what-config_cache.php
index 59ac1df1d08fa6cb6f4f0c452c41174c9a433358..28b2d7e7866c3e1bfafe70b2fe05a7ce93e48faa 100644 (file)
@@ -83,6 +83,10 @@ if (isFormSent()) {
                $GLOBALS['cache_instance']->destroyCacheFile();
        } // END - if
 
+       if ((REQUEST_POST('cache_filter') == 'N') && ($GLOBALS['cache_instance']->loadCacheFile('filter'))) {
+               $GLOBALS['cache_instance']->destroyCacheFile();
+       } // END - if
+
        // Save configuration
        ADMIN_SAVE_SETTINGS_POST();
 } else {
@@ -172,6 +176,18 @@ if (isFormSent()) {
                        break;
        } // END - switch
 
+       switch (getConfig('cache_filter')) {
+               case 'Y':
+                       define('__FILTER_Y', ' checked="checked"');
+                       define('__FILTER_N', '');
+                       break;
+
+               case 'N':
+                       define('__FILTER_Y', '');
+                       define('__FILTER_N', ' checked="checked"');
+                       break;
+       } // END - switch
+
        switch (getConfig('cache_themes')) {
                case 'Y':
                        define('__THEMES_Y', ' checked="checked"');