[wp-trac] [WordPress Trac] #41675: Add filter to bypass display/query for Media Months filter in media modal

WordPress Trac noreply at wordpress.org
Tue Nov 3 22:48:15 UTC 2020


#41675: Add filter to bypass display/query for Media Months filter in media modal
----------------------------------------+------------------------------
 Reporter:  CrazyJaco                   |       Owner:  joemcgill
     Type:  enhancement                 |      Status:  reviewing
 Priority:  normal                      |   Milestone:  Awaiting Review
Component:  Media                       |     Version:
 Severity:  normal                      |  Resolution:
 Keywords:  good-first-bug needs-patch  |     Focuses:  performance
----------------------------------------+------------------------------

Comment (by GunGeekATX):

 I started writing a plugin for a client project to allow "caching" of some
 of the core wpdb queries that we currently can't override. Our client has
 over 100k unique images in the media library and just a couple queries
 were adding several seconds to the page load. Take a look at this, might
 be a good interim solution until core supports the necessary filters to
 bypass these queries. I have a PR I'm working on specifically for the
 months dropdown query, but expect to have it merged shortly.

 [https://github.com/petenelson/cached-wpdb-queries]

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


More information about the wp-trac mailing list