diff --git a/src/includes/classes/AdvCacheBackCompat.php b/src/includes/classes/AdvCacheBackCompat.php index f01a176f..9966026c 100644 --- a/src/includes/classes/AdvCacheBackCompat.php +++ b/src/includes/classes/AdvCacheBackCompat.php @@ -76,13 +76,8 @@ public static function browserCacheConstant() { $_global_ns = mb_strtoupper(GLOBAL_NS); - if (!($constants = get_defined_constants(true)) || empty($constants['user'])) { - return; // Nothing to do; i.e. no user-defined constants. - } - if (in_array('COMET_CACHE_ALLOW_BROWSER_CACHE', $constants['user'])) { - if (!defined($_global_ns.'_ALLOW_CLIENT_SIDE_CACHE')) { - define($_global_ns.'_ALLOW_CLIENT_SIDE_CACHE', $constants['user']['COMET_CACHE_ALLOW_BROWSER_CACHE']); - } + if (defined('COMET_CACHE_ALLOW_BROWSER_CACHE')) { + define($_global_ns.'_ALLOW_CLIENT_SIDE_CACHE', COMET_CACHE_ALLOW_BROWSER_CACHE); } } }