Skip to content
Snippets Groups Projects
Commit 0e819c2e authored by Neil Drumm's avatar Neil Drumm :wave:
Browse files

#39432 by chx. Invalidate the page cache if a poll is voted on.

parent 0ad40f33
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -487,6 +487,7 @@ function poll_vote(&$node) { ...@@ -487,6 +487,7 @@ function poll_vote(&$node) {
$node->allowvotes = FALSE; $node->allowvotes = FALSE;
$node->choice[$choice]['chvotes']++; $node->choice[$choice]['chvotes']++;
cache_clear_all();
drupal_set_message(t('Your vote was recorded.')); drupal_set_message(t('Your vote was recorded.'));
} }
else { else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment