function authcache_nodeapi in Authenticated User Page Caching (Authcache) 6
Implements hook_nodeapi().
File
- ./
authcache.module, line 250 - Authenticated User Page Caching (and anonymous users, too!)
Code
function authcache_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL) {
global $user, $is_page_authcache;
if ($is_page_authcache) {
switch ($op) {
case 'load':
// Don't cache poll results
if ($node->type == 'poll') {
if (user_access('vote on polls') && $node->active) {
$node->allowvotes = TRUE;
}
}
break;
}
}
}