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

WordPress Trac noreply at wordpress.org
Thu Nov 10 09:03:14 UTC 2022


#57055: Allow posts query in wp_dashboard_recent_posts() to be cached
-------------------------------------+-------------------------------------
 Reporter:  ocean90                  |      Owner:  (none)
     Type:  enhancement              |     Status:  new
 Priority:  normal                   |  Milestone:  Future Release
Component:  Query                    |    Version:
 Severity:  normal                   |   Keywords:  needs-patch good-first-
  Focuses:  administration,          |  bug
  performance                        |
-------------------------------------+-------------------------------------
 In `wp_dashboard_recent_posts()`, `cache_results` is set to `false` which
 means the `WP_Query` can't benefit of
 [https://make.wordpress.org/core/2022/10/07/improvements-to-wp_query-
 performance-in-6-1/ the performance changes in 6.1]. I couldn't find a
 reason why this specific query shouldn't be cached.

 The widget was added in [26144] as `dashboard_show_published_posts()` and
 renamed to `wp_dashboard_recent_posts()` in [26690]. `cache_results` was
 set in https://github.com/davemart-in/WordPress-3.8-Dashboard/pull/9/files
 before the merge.

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


More information about the wp-trac mailing list