Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
menu system
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
14 Aug 2013 at 14:39 UTC
Updated:
29 Jul 2014 at 22:46 UTC
LocalActionManager does not cache plugin definitions, so they are rebuilt on every request.
Add caching! The DefaultPluginManager supports this, we just need to call setCacheBackend().
Patch.
None
None
| Comment | File | Size | Author |
|---|---|---|---|
| d8.localActionManager-cache.patch | 2.45 KB | damiankloip |
Comments
Comment #1
berdirMakes sense, let's do this. This adds more cache queries to every request, but that's better than parsing yaml files and annotations.
#2064511: Use a cache collector to combine related plugin caches is an idea to reduce the amount of cache queries.
Comment #2
webchickLooks sane to me, but tossing to catch for confirmation.
Comment #3
catchYep. Committed/pushed to 8x., thanks!
Comment #4
dawehnerDamian!!! #2046565: Cache the local action plugins that appear per route
Comment #5
damiankloip commentedOhhh, sorry :( I didn't realise that patch added definition caching too!
Comment #6
dawehnerThat is okay, all you have to do is to review both local actions and local tasks caching :p
Comment #7
damiankloip commentedYou have me, I will. Tomorrow!