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') {
+} 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');
// Close cache
$GLOBALS['cache_instance']->storeExtensionVersion('foo');
$GLOBALS['cache_instance']->finalize();
-
- // Include loader again
- loadInclude('inc/loader/'.basename(__FILE__));
}
// [EOF]