Commit 22644347 authored by tim.plunkett's avatar tim.plunkett

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

CacheBackendInterface::deletePrefix() has been removed in favor of CacheBackendInterface::invalidateTags().
parent e4b01a0d
......@@ -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));
}
/**
......
......@@ -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));
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment