You are here

function _authcache_original_ob_level in Authenticated User Page Caching (Authcache) 7.2

Utility function used to memoize the ob_level in use during hook_init.

Related topics

2 calls to _authcache_original_ob_level()
authcache_authcache_cancel in ./authcache.module
Implements hook_authcache_cancel().
authcache_init in ./authcache.module
Implements hook_init().

File

./authcache.module, line 874
Authenticated User Page Caching (and anonymous users, too!)

Code

function _authcache_original_ob_level($set = FALSE) {
  $original_ob_level =& drupal_static(__FUNCTION__);
  if ($set) {
    $original_ob_level = ob_get_level();
  }
  return $original_ob_level;
}