Often times, I have had to change a few settings on a View that has a Page or Feed display, but not change the URL of the Page or Feed. This can be frustrating, since to save a View with a Page or Feed display appears to force a menu_rebuild so that the URL path for the display can be registered.

Thus, I propose that the menu_rebuild be made conditional. This could be done, I think, by temporarily saving what the old path was in a variable & then doing a comparison - something like:

if($old_url != $new_url) {
menu_rebuild();
}

I think this would make views saves much faster in many cases & would be much appreciated :)

Comments

EvanDonovan’s picture

Title: Make menu_rebuild conditional on whether the page of a Views Page or Feed display has changed » Make menu_rebuild conditional on whether the URL of a Views Page or Feed display has changed

Title was unclear.

esmerel’s picture

Status: Active » Postponed
merlinofchaos’s picture

Category: feature » task
Status: Postponed » Active

This needs someone to work on it.

EvanDonovan’s picture

Version: 6.x-2.6 » 7.x-3.x-dev

Guess that this would probably be 7.x-3.x by this point. I don't think I could pick this one up, though, at least not at the moment.

dawehner’s picture

I'm pretty sure that there was an issue which already had a patch. Sadly i fail to find it.

MustangGB’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Closing this as outdated to tidy up a bit around here. If you're still having problems with the latest release please create a new issue.