diff --git a/modules/poll/poll.module b/modules/poll/poll.module
index 2737c2b..6828a7f 100644
--- a/modules/poll/poll.module
+++ b/modules/poll/poll.module
@@ -770,7 +770,7 @@ function poll_vote($form, &$form_state) {
     ->condition('chid', $choice)
     ->execute();
 
-  cache_clear_all();
+  cache()->flush();
 
   if (!$user->uid) {
     // The vote is recorded so the user gets the result view instead of the
