[wp-trac] [WordPress Trac] #36225: Cache wp_nav_menu with Transient API
WordPress Trac
noreply at wordpress.org
Sun Mar 13 11:12:37 UTC 2016
#36225: Cache wp_nav_menu with Transient API
-------------------------+-----------------------------
Reporter: ianatkins | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Menus | Version: 4.4.2
Severity: normal | Keywords:
Focuses: performance |
-------------------------+-----------------------------
Forgive me if I'm wrong but it looks like wp_nav_menu output isn't cached
with the transient API. We're manually caching the output in our theme,
then clearing the transient on the 'wp_update_nav_menu' hook.
For sites with caching plugins this is obviously redundant, but with
dynamic pages (e.g. WooCommerce carts) this would be beneficial.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36225>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list