X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Floader%2Fload_cache-;h=9ad7371c4b95a72dc9949e89a47cc1ef5b312224;hp=548c05e6b8ed1a28aa4ef03c6f3adb477de5357d;hb=d92d8b4ddd219b65df8e0bba5e4354c0bbfba5c9;hpb=64c8349613addc3da2242c5cd6b99d64e3fb5f8e diff --git a/inc/loader/load_cache- b/inc/loader/load_cache- index 548c05e6b8..9ad7371c4b 100644 --- a/inc/loader/load_cache- +++ b/inc/loader/load_cache- @@ -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]