LOAD_INC_ONCE("inc/gen_sql_patches.php");
// @TODO Rewrite this to a filter!
- if ((GET_EXT_VERSION("cache") >= "0.1.2") && (isset($GLOBALS['cache_instance'])) && (is_object($GLOBALS['cache_instance']))) {
+ if ((GET_EXT_VERSION("cache") >= "0.1.2") && (isCacheInstanceValid())) {
// Remove extensions and mod_reg cache file
LOAD_INC_ONCE("inc/libs/cache_functions.php");
require(sprintf("%sinc/extensions/ext-cache.php", constant('PATH')));