diff --git a/includes/admin.inc b/includes/admin.inc index 160a61a..e2eacc2 100644 --- a/includes/admin.inc +++ b/includes/admin.inc @@ -715,6 +715,10 @@ function views_ui_add_form_save_submit($form, &$form_state) { } $view->save(); + // Clear the object cache as there might be views with the same name still in there. + ctools_include('object-cache'); + ctools_object_cache_clear('view', $view->name); + $form_state['redirect'] = 'admin/structure/views'; if (!empty($view->display['page'])) { $display = $view->display['page'];