Commit f1f329b1 authored by catch's avatar catch

Issue #2002398 by web.dev.cas: Rename Views method cache_flush() to cacheFlush().

parent 6ec3a9ef
......@@ -180,7 +180,7 @@ function cache_get($type) {
* We're just going to nuke anything related to the view, regardless of display,
* to be sure that we catch everything. Maybe that's a bad idea.
*/
function cache_flush() {
public function cacheFlush() {
cache($this->table)->deleteTags(array($this->view->storage->id() => TRUE));
}
......
......@@ -2146,7 +2146,7 @@ public function submitOptionsForm(&$form, &$form_state) {
// Not sure I like this being here, but it seems (?) like a logical place.
$cache_plugin = $this->getPlugin('cache');
if ($cache_plugin) {
$cache_plugin->cache_flush();
$cache_plugin->cacheFlush();
}
$section = $form_state['section'];
......
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