Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
I'm thinking we should cache mega menus (have a cache switch in the admin area) so we aren't iterating through every menu item with every page load.
Comments
Comment #1
Anonymous (not verified) CreditAttribution: Anonymous commentedComment #2
Anonymous (not verified) CreditAttribution: Anonymous commentedWill caching the block be sufficient?
Comment #3
GiorgosKYes very much needed feature
block cache is enabled on my system but I still see the menu be rebuilt on every page load ...
Comment #4
alexbk66- CreditAttribution: alexbk66- commentedI've done it for my site as I have 500 items in the menu. I'm using 'cache_menu' table so it get's cleared when cache is cleared.
Note: I also commented out 'i18nmenu_localize_tree', see http://drupal.org/node/1090256#comment-5683054
The page load time is reduced by 2 seconds and is now under one second, of course when the menu is already cached.
hobbyblob.com
Comment #5
bnobleman CreditAttribution: bnobleman commentedThe stuff below caches menu per user
-------
Bernard Szlachta
http://www.nobleprog.co.uk/drupal/training
http://www.nobleprog.us/drupal-training-courses
Comment #6
ram4nd CreditAttribution: ram4nd as a volunteer commentedI implemented block cache per page. Should be enough. If you want real speed, use boost or varnish. For non anonymous there is the block cache now.