From 22644347784e8341e0f679de3b4dfa64252f37ed Mon Sep 17 00:00:00 2001
From: Tim Plunkett <git@plnktt.com>
Date: Wed, 3 Oct 2012 17:22:33 -0400
Subject: [PATCH] CacheBackendInterface::deletePrefix() has been removed in
 favor of CacheBackendInterface::invalidateTags().

---
 lib/Drupal/views/Plugin/views/cache/CachePluginBase.php | 2 +-
 views.api.php                                           | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/Drupal/views/Plugin/views/cache/CachePluginBase.php b/lib/Drupal/views/Plugin/views/cache/CachePluginBase.php
index 68a1c4c27503..a236d8073e21 100644
--- a/lib/Drupal/views/Plugin/views/cache/CachePluginBase.php
+++ b/lib/Drupal/views/Plugin/views/cache/CachePluginBase.php
@@ -198,7 +198,7 @@ function cache_get($type) {
    * to be sure that we catch everything. Maybe that's a bad idea.
    */
   function cache_flush() {
-    cache($this->table)->deletePrefix($this->view->storage->name . ':');
+    cache($this->table)->invalidateTags(array($this->view->storage->name => TRUE));
   }
 
   /**
diff --git a/views.api.php b/views.api.php
index 29666a4821f8..4479cd02bf15 100644
--- a/views.api.php
+++ b/views.api.php
@@ -1078,7 +1078,7 @@ function hook_views_ajax_data_alter(&$commands, $view) {
  * @see views_invalidate_cache()
  */
 function hook_views_invalidate_cache() {
-  cache('mymodule')->deletePrefix('views:*');
+  cache('mymodule')->invalidateTags(array('views' => TRUE));
 }
 
 /**
-- 
GitLab