function authcache_enable in Authenticated User Page Caching (Authcache) 7
Same name and namespace in other branches
- 6 authcache.install \authcache_enable()
Implements hook_enable().
File
- ./
authcache.install, line 12 - Install, update and uninstall functions for the authcache module.
Code
function authcache_enable() {
global $user;
// Set authcache cookie for user so they don't receive cached anon pages.
if (!drupal_is_cli()) {
authcache_user_login($user, $user);
}
}