[wp-trac] [WordPress Trac] #56105: Call update_post_parent_caches in the_post function in WP_Query class

WordPress Trac noreply at wordpress.org
Thu Apr 20 12:55:57 UTC 2023


#56105: Call update_post_parent_caches in the_post function in WP_Query class
------------------------------------------+------------------------------
 Reporter:  priyankkpatel                 |       Owner:  (none)
     Type:  enhancement                   |      Status:  new
 Priority:  normal                        |   Milestone:  Awaiting Review
Component:  Query                         |     Version:
 Severity:  normal                        |  Resolution:
 Keywords:  needs-patch needs-unit-tests  |     Focuses:  performance
------------------------------------------+------------------------------

Comment (by spacedmonkey):

 @priyankkpatel Can you provide anymore context here? Why is it needed to
 prime the caches on post parents in the loop. A standard loop does not
 call the parent. There is nothing stopping you from call
 `update_post_parent_caches` within your own code, if you have an issue in
 your own theme/plugin.

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


More information about the wp-trac mailing list