}
// Next cached table is the module registry (mod_reg)...
-if (($cacheInstance->cache_file("mod_reg")) && ($cacheInstance->ext_version_matches("sql_patches"))) {
+if (($cacheInstance->loadCacheFile("mod_reg")) && ($cacheInstance->extensionVersionMatches("sql_patches"))) {
// Load cache
global $cacheArray;
- $cacheArray['modules'] = $cacheInstance->cache_load();
+ $cacheArray['modules'] = $cacheInstance->getArrayFromCache();
// Rewrite module cache
$modArray = $cacheArray['modules'];
unset($modArray);
} elseif (($_CONFIG['cache_modreg'] == "Y") && ($CSS != "1") && ($CSS != "-1")) {
// Create cache file here
- $cacheInstance->cache_init("MODULES");
- $cacheInstance->store_extension_version("sql_patches");
+ $cacheInstance->init("MODULES");
+ $cacheInstance->storeExtensionVersion("sql_patches");
// Load all modules and their data
if (GET_EXT_VERSION("sql_patches") >= "0.3.6") {
// Cache all data
while ($data = SQL_FETCHARRAY($result)) {
// Add row to cache file
- $cacheInstance->add_row($data);
+ $cacheInstance->addRow($data);
} // END - while
// Free memory
SQL_FREERESULT($result);
// Close the cache
- $cacheInstance->cache_close();
+ $cacheInstance->finalize();
// Reload the cache
require(__FILE__);
}
-// Close file
-$cacheInstance->cache_close();
-
//
?>