[wp-trac] [WordPress Trac] #57055: Allow posts query in wp_dashboard_recent_posts() to be cached

WordPress Trac noreply at wordpress.org
Thu Jun 8 10:00:23 UTC 2023


#57055: Allow posts query in wp_dashboard_recent_posts() to be cached
-------------------------------------+-------------------------------------
 Reporter:  ocean90                  |       Owner:  ocean90
     Type:  enhancement              |      Status:  closed
 Priority:  normal                   |   Milestone:  6.3
Component:  Query                    |     Version:  3.8
 Severity:  normal                   |  Resolution:  fixed
 Keywords:  good-first-bug has-      |     Focuses:  administration,
  patch commit                       |  performance
-------------------------------------+-------------------------------------
Changes (by ocean90):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"55895" 55895]:
 {{{
 #!CommitTicketReference repository="" revision="55895"
 Query: Allow queries by `wp_dashboard_recent_posts()` to be cached.

 Set the `cache_results` argument to `true` for `WP_Query` to ensure the
 posts queries on the dashboard can also be cached.

 Props benjgrolleau.
 Fixes #57055.
 }}}

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


More information about the wp-trac mailing list