[wp-trac] [WordPress Trac] #60199: update_menu_item_cache appears to load postmeta for all linked posts

WordPress Trac noreply at wordpress.org
Wed Jan 17 17:58:30 UTC 2024


#60199: update_menu_item_cache appears to load postmeta for all linked posts
-------------------------------+------------------------------
 Reporter:  huemordave         |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Menus              |     Version:  6.4.2
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:  performance
-------------------------------+------------------------------

Comment (by spacedmonkey):

 @joemcgill As you can see from [52975], we replace calls to `get_posts`
 with `_prime_post_caches`. `get_posts` set the `update_post_term_cache` to
 false. We replicate this behaviour by setting the `$update_term_cache` to
 false when calling `_prime_post_caches`.

 This would have been an issues pre WP 6.0.

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


More information about the wp-trac mailing list