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