Skip to content

Commit

Permalink
Refactor 'browser caching' to 'client side caching'
Browse files Browse the repository at this point in the history
  • Loading branch information
raamdev committed Jun 27, 2016
1 parent a447236 commit 656098f
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/includes/classes/AdvCacheBackCompat.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}

0 comments on commit 656098f

Please sign in to comment.