[wp-trac] [WordPress Trac] #36225: Cache wp_nav_menu with Transient API

WordPress Trac noreply at wordpress.org
Mon Jul 3 21:39:16 UTC 2017


#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       |  Resolution:
 Keywords:               |     Focuses:  performance
-------------------------+------------------------------

Comment (by szepe.viktor):

 Core has a lot of caching done in '''object cache'''. See post caching for
 example.

 My implementation also works with object cache although it will not work
 without one.
 https://github.com/szepeviktor/tiny-cache/blob/master/tiny-nav-menu-
 cache.php

 It has hooks for flushing the nav menu cache on menu editing.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/36225#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list