function entitycache_comment_publish in Entity cache 7
Implements hook_comment_publish().
@todo: core should not call this hook outside of a comment_save().
File
- ./
entitycache.module, line 146 - Allows for caching of core entities.
Code
function entitycache_comment_publish($comment) {
if (empty($comment->migrate)) {
cache_clear_all($comment->cid, 'cache_entity_comment');
cache_clear_all($comment->nid, 'cache_entity_node');
}
}