- // Do not recreate cache file when it's switched off!
- if (($cacheMode == "init") && ($_CONFIG['cache_exts'] == "N")) $cacheMode = "skip";
-
- // Load language
- if ($cacheMode == "load") include(PATH."inc/language/cache_".GET_LANGUAGE().".php");
-} else {
- // Cache extension not active
- $cacheMode = "no";
-}
+ // Do we need to init the cache?
+ if (($cacheMode == "init") && ($_CONFIG['cache_exts'] == "Y")) {
+ // Init cache file
+ $cacheInstance->cache_init("EXTENSIONS");
+ $cacheInstance->store_extension_version("sql_patches");
+ } elseif ($_CONFIG['cache_exts'] == "N") {
+ // Cache will not be created for extensions
+ $cacheMode = "skip";
+ }
+} // END - if