CacheBackendInterface::deletePrefix() has been removed in favor of CacheBackendInterface::invalidateTags().

8.0.x
Tim Plunkett 2012-10-03 17:22:33 -04:00
parent e4b01a0d9e
commit 2264434778
2 changed files with 2 additions and 2 deletions
lib/Drupal/views/Plugin/views/cache

View File

@ -198,7 +198,7 @@ abstract class CachePluginBase extends PluginBase {
* 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));
}
/**

View File

@ -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));
}
/**