Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
We found out yesterday that views_menu() re-triggers a router rebuild and various cache clears when views_menu() is called.
That's absolutely unnecessary and shaves off a few seconds of every menu rebuild.
Comment | File | Size | Author |
---|---|---|---|
#4 | views-invalidate-cache-2097327-4.patch | 1.32 KB | Berdir |
#1 | views-invalidate-cache-2097327-1.patch | 545 bytes | Berdir |
Comments
Comment #1
BerdirHere's the patch.
Comment #2
jibranTagging.
Comment #4
BerdirYes, that test needs to rebuild the router and the menu (if we don't, we get a 500 about a missing route)
Comment #6
tim.plunkett#4: views-invalidate-cache-2097327-4.patch queued for re-testing.
Comment #7
tim.plunkettThat was a known random fail, this is great, thanks @Berdir!
Comment #8
webchickWow, GREAT find!
Committed and pushed to 8.x. Thanks!
Comment #9
clemens.tolboomI just reported #2098421: Views are rendered when drupal_flush_all_caches through RouteBuilder->rebuild()