Issue #1605140 by bojanz: Remove usage of cache_clear_all().

8.0.x
bojanz 2012-05-29 10:46:04 +02:00 committed by Tim Plunkett
parent ce159b9f3e
commit 96826f6cb8
2 changed files with 8 additions and 5 deletions

View File

@ -721,7 +721,7 @@ function views_ui_add_form_save_submit($form, &$form_state) {
$view->save();
menu_router_rebuild();
cache('cache_views')->flush();
cache_clear_all();
cache_invalidate(array('content' => TRUE));
$form_state['redirect'] = 'admin/structure/views';
if (!empty($view->display['page'])) {
$display = $view->display['page'];
@ -2169,7 +2169,7 @@ function views_ui_edit_view_form_submit($form, &$form_state) {
cache('cache_views')->flush();
// Clear the page cache.
cache_clear_all();
cache_invalidate(array('content' => TRUE));
// Remove this view from cache so we can edit it properly.
ctools_object_cache_clear('view', $form_state['view']->name);

View File

@ -1810,7 +1810,8 @@ class view extends views_db_object {
$this->save_locale_strings();
cache('cache_views')->delete('views_urls');
cache_clear_all(); // clear the page cache as well.
// Clear the page cache as well.
cache_invalidate(array('content' => TRUE));
}
/**
@ -1847,8 +1848,10 @@ class view extends views_db_object {
cache('cache_views')->delete('views_query:' . $this->name);
if ($clear) {
cache_clear_all(); // this clears the block and page caches only.
menu_router_rebuild(); // force a menu rebuild when a view is deleted.
// Clear the block and page caches.
cache_invalidate(array('content' => TRUE));
// Force a menu rebuild when a view is deleted.
menu_router_rebuild();
}
}