Commit adaf8355 authored by webchick's avatar webchick

Issue #2097327 by Berdir: Fixed Unecessary cache clear/router rebuild in views_menu().

parent 56b72541
......@@ -242,8 +242,8 @@ public function testInvalidDisplayPlugins() {
$this->assertResponse(200);
$this->assertText(t('The plugin (invalid) did not specify an instance class.'));
// Rebuild the menu, and ensure that the path is not accessible anymore.
menu_router_rebuild();
// Rebuild the router, and ensure that the path is not accessible anymore.
views_invalidate_cache();
$this->drupalGet('test_display_invalid');
$this->assertResponse(404);
......
......@@ -312,9 +312,6 @@ function views_permission() {
* Implement hook_menu().
*/
function views_menu() {
// Any event which causes a menu rebuild could potentially mean that the
// Views data is updated -- module changes, profile changes, etc.
views_invalidate_cache();
$items = array();
$items['views/ajax'] = array(
'title' => 'Views',
......
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