[wp-trac] [WordPress Trac] #42566: When I use wp_nav_menu I get a huge update_meta_cache query regardless of theme
WordPress Trac
noreply at wordpress.org
Tue Jun 10 15:28:58 UTC 2025
#42566: When I use wp_nav_menu I get a huge update_meta_cache query regardless of
theme
--------------------------+--------------------------
Reporter: andyseaton83 | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Menus | Version: 4.8.3
Severity: normal | Resolution: invalid
Keywords: | Focuses: performance
--------------------------+--------------------------
Changes (by flixos90):
* status: reopened => closed
* resolution: => invalid
* milestone: Awaiting Review =>
Comment:
This indeed seems to be a caching related issue. It is the expected
behavior for posts (in this case based on the menu items) to fetch the
metadata if it hasn't been loaded into the cache yet.
For large sites or sites with very complex requirements (a menu with 80
items is not quite common), the recommendation would be to use a
persistent object cache indeed.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42566#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list