summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeil Drumm <drumm@3064.no-reply.drupal.org>2006-08-24 08:56:17 +0000
committerNeil Drumm <drumm@3064.no-reply.drupal.org>2006-08-24 08:56:17 +0000
commit0e819c2e5630407ba5361cf6d427d697767b5a82 (patch)
tree82d970b71bd3963151f97c370f8599e6f38e47d7
parent0ad40f33d42fcd84c16cdd7f67088071dd5e7a2a (diff)
downloadbrdo-0e819c2e5630407ba5361cf6d427d697767b5a82.tar.gz
brdo-0e819c2e5630407ba5361cf6d427d697767b5a82.tar.bz2
#39432 by chx. Invalidate the page cache if a poll is voted on.
-rw-r--r--modules/poll/poll.module1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/poll/poll.module b/modules/poll/poll.module
index 02a72b8cb..186562887 100644
--- a/modules/poll/poll.module
+++ b/modules/poll/poll.module
@@ -487,6 +487,7 @@ function poll_vote(&$node) {
$node->allowvotes = FALSE;
$node->choice[$choice]['chvotes']++;
+ cache_clear_all();
drupal_set_message(t('Your vote was recorded.'));
}
else {