Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
221
Merge Requests
221
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
adaf8355
Commit
adaf8355
authored
Sep 25, 2013
by
webchick
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2097327
by Berdir: Fixed Unecessary cache clear/router rebuild in views_menu().
parent
56b72541
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
5 deletions
+2
-5
core/modules/views/lib/Drupal/views/Tests/Plugin/DisplayTest.php
...dules/views/lib/Drupal/views/Tests/Plugin/DisplayTest.php
+2
-2
core/modules/views/views.module
core/modules/views/views.module
+0
-3
No files found.
core/modules/views/lib/Drupal/views/Tests/Plugin/DisplayTest.php
View file @
adaf8355
...
...
@@ -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
);
...
...
core/modules/views/views.module
View file @
adaf8355
...
...
@@ -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'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment