You are here

function d8cache_comment_publish in Drupal 8 Cache Backport 7

Implements hook_comment_publish().

File

includes/comment.inc, line 25
Comment functions and hooks for the D8 caching system backport.

Code

function d8cache_comment_publish($comment) {
  drupal_invalidate_cache_tags(array(
    'node:' . $comment->nid,
  ));
}