]> git.mxchange.org Git - mailer.git/blobdiff - inc/loader/load_cache-
Fixes for broken order page and themes
[mailer.git] / inc / loader / load_cache-
index 548c05e6b8ed1a28aa4ef03c6f3adb477de5357d..9ad7371c4b95a72dc9949e89a47cc1ef5b312224 100644 (file)
@@ -41,13 +41,16 @@ if (!defined('__SECURITY')) {
        die();
 } // END - if
 
+// Use this code if you don't want to run this cache loader on installation phase
+//if (isInstallationPhase()) return;
+
 // Let's start with the admins table...
 if (($GLOBALS['cache_instance']->loadCacheFile('foo')) && ($GLOBALS['cache_instance']->extensionVersionMatches('foo'))) {
        // Load cache
        $GLOBALS['cache_array']['foo'] = $GLOBALS['cache_instance']->getArrayFromCache();
 } elseif (getOutputMode() != '1') {
        // Create cache file
-       $GLOBALS['cache_instance']->init('FOO');
+       $GLOBALS['cache_instance']->init();
 
        // Load every data from DB to cache file
        $add = runFilterChain('sql_admin_extra_data');
@@ -65,9 +68,6 @@ if (($GLOBALS['cache_instance']->loadCacheFile('foo')) && ($GLOBALS['cache_insta
        // Close cache
        $GLOBALS['cache_instance']->storeExtensionVersion('foo');
        $GLOBALS['cache_instance']->finalize();
-
-       // Include loader again
-       loadInclude('inc/loader/'.basename(__FILE__));
 }
 
 // [EOF]