die();
} // END - if
+// Use this code if you don't want to run this cache loader on installation phase
+if (isInstallationPhase()) return;
+
// Next cached table is the extension
if (($GLOBALS['cache_instance']->loadCacheFile('extension')) && ($GLOBALS['cache_instance']->extensionVersionMatches('sql_patches'))) {
// Load extension from cache
// Remove array and mark cache as loaded
unset($EXT_POOL);
-} elseif (getOutputMode() != '1') {
+} elseif (getOutputMode() != 1) {
// Create cache file here
- $GLOBALS['cache_instance']->init('extension');
+ $GLOBALS['cache_instance']->init();
// Add more if sql_patches is recent enougth
$add = '';
// Close the cache
$GLOBALS['cache_instance']->storeExtensionVersion('sql_patches');
$GLOBALS['cache_instance']->finalize();
-
- // Include loader again
- loadInclude('inc/loader/'.basename(__FILE__));
}
// [EOF]