You are here

function _authcache_backendstatus in Authenticated User Page Caching (Authcache) 7

Return true if settings.php is properly configured and authcache.inc is the last entry in the cache_backends array.

1 call to _authcache_backendstatus()
authcache_requirements in ./authcache.install
Implements hook_requirements().

File

./authcache.install, line 85
Install, update and uninstall functions for the authcache module.

Code

function _authcache_backendstatus() {

  // Check whether authcache.inc is last in cache_backends.
  $backends = variable_get('cache_backends', array());
  $last_in_backends = end($backends);
  $authcache_inc = drupal_get_path('module', 'authcache') . '/authcache.inc';
  return $authcache_inc == $last_in_backends;
}