CacheBackendInterface::deletePrefix() has been removed in favor of CacheBackendInterface::invalidateTags().
parent
e4b01a0d9e
commit
2264434778
lib/Drupal/views/Plugin/views/cache
|
@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue