[wp-trac] [WordPress Trac] #27120: Add object cache to wp_nav_menu() items
WordPress Trac
noreply at wordpress.org
Mon Oct 10 08:57:12 UTC 2022
#27120: Add object cache to wp_nav_menu() items
-------------------------------------------------+-------------------------
Reporter: Clorith | Owner: (none)
Type: enhancement | Status: reopened
Priority: normal | Milestone: Future
| Release
Component: Menus | Version: 3.8
Severity: normal | Resolution:
Keywords: has-patch 2nd-opinion has-unit- | Focuses: template,
tests | performance
-------------------------------------------------+-------------------------
Comment (by johnbillion):
This ticket crossed my mind last week because the `wp_cache_flush_group()`
function is now in place. It facilitates caching nav menus separately for
each URL in a group that can now be flushed easily when necessary (as long
as the cache driver supports it).
However I think the main blocker for doing this in core is handling
dynamic menu items and handling filters on the nav menu hooks that can
adjust the output. It's fine on a client site where you know there is no
dynamism in the nav menus, but it can't be guaranteed otherwise.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27120#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list