function _authcache_builtin_backendstatus in Authenticated User Page Caching (Authcache) 7.2
Return TRUE if settings.php is properly configured.
Verify that authcache_builtin.cache.inc is the last entry in the cache_backends array.
Return value
bool TRUE if the configuration is sane, FALSE otherwise.
1 call to _authcache_builtin_backendstatus()
- authcache_builtin_requirements in modules/
authcache_builtin/ authcache_builtin.install - Implements hook_requirements().
File
- modules/
authcache_builtin/ authcache_builtin.install, line 43 - Install, update and uninstall functions for the Authcache Bultin module.
Code
function _authcache_builtin_backendstatus() {
// Check whether authcache.inc is last in cache_backends.
$backends = variable_get('cache_backends', array());
$last_in_backends = end($backends);
$authcache_builtin_inc = drupal_get_path('module', 'authcache_builtin') . '/authcache_builtin.cache.inc';
$authcache_main_inc = drupal_get_path('module', 'authcache') . '/authcache.cache.inc';
return $authcache_builtin_inc === $last_in_backends && in_array($authcache_main_inc, $backends);
}