You are here

function expire_comment_publish in Cache Expiration 7

Same name and namespace in other branches
  1. 7.2 expire.module \expire_comment_publish()

Implements hook_comment_publish().

Acts when publishing comments.

File

./expire.module, line 73
Provides logic for page cache expiration

Code

function expire_comment_publish($comment) {
  if (!empty($comment->nid)) {
    $node = node_load($comment->nid);
    if ($node) {
      expire_node($node);
    }
  }
}