function expire_comment_insert in Cache Expiration 7
Same name and namespace in other branches
- 7.2 expire.module \expire_comment_insert()
Implements hook_comment_insert().
Acts on new comments.
File
- ./
expire.module, line 45 - Provides logic for page cache expiration
Code
function expire_comment_insert($comment) {
if (!empty($comment->nid)) {
$node = node_load($comment->nid);
if ($node) {
expire_node($node);
}
}
}