You are here

function authcache_backend_test_exit in Authenticated User Page Caching (Authcache) 7.2

Implements hook_ext().

File

tests/authcache_backend_test.module, line 36
Provides a stub cache backend for testing purposes.

Code

function authcache_backend_test_exit() {
  if (drupal_get_bootstrap_phase() === DRUPAL_BOOTSTRAP_FULL) {
    drupal_add_http_header('X-Authcache-Backend-Test-Sess-Boot', authcache_backend_initial_session_id());
    drupal_add_http_header('X-Authcache-Backend-Test-Sess-Exit', empty($_SESSION) ? FALSE : session_id());
    drupal_add_http_header('X-Authcache-Backend-Test-Key-Boot', authcache_backend_initial_key());
    drupal_add_http_header('X-Authcache-Backend-Test-Key-Exit', authcache_key());
  }
}