diff --git a/modules/aggregator/aggregator.parser.inc b/modules/aggregator/aggregator.parser.inc
index cffd1c3..6351417 100644
--- a/modules/aggregator/aggregator.parser.inc
+++ b/modules/aggregator/aggregator.parser.inc
@@ -52,8 +52,8 @@ function aggregator_aggregator_parse($feed) {
     $feed->modified = $modified;
 
     // Clear the cache.
-    cache_clear_all();
-
+    cache()->flush();
+    
     return TRUE;
   }
 
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
