You are here

function d8cache_comment_insert in Drupal 8 Cache Backport 7

Implements hook_comment_insert().

File

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

Code

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