summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArto Bendiken2008-10-25 14:11:32 (GMT)
committerArto Bendiken2008-10-25 14:11:32 (GMT)
commit86ce147491b0dd81711f6ea8228526bb6cfe4615 (patch)
treeb592f7f3742592034fb9831e480131f6789f1854
parent27677326382f208d516703713871d9ae0fde5a05 (diff)
#192596 by torres: Expire cached page when a comment is unpublished or deleted.
-rw-r--r--boost.module6
1 files changed, 6 insertions, 0 deletions
diff --git a/boost.module b/boost.module
index 96057b5..61ac034 100644
--- a/boost.module
+++ b/boost.module
@@ -213,6 +213,12 @@ function boost_comment($comment, $op) {
if (!empty($comment['nid']))
boost_cache_expire('node/' . $comment['nid'], TRUE);
break;
+ case 'publish':
+ case 'unpublish':
+ case 'delete':
+ if (!empty($comment->nid))
+ boost_cache_expire('node/' . $comment->nid, TRUE);
+ break;
}
}