[wp-trac] [WordPress Trac] #52759: Add a filter to get_available_post_mime_types() function to allow overriding extremely slow query.

WordPress Trac noreply at wordpress.org
Thu Mar 11 15:24:17 UTC 2021


#52759: Add a filter to get_available_post_mime_types() function to allow
overriding extremely slow query.
--------------------------------------+------------------------------
 Reporter:  maciejmackowiak           |       Owner:  (none)
     Type:  feature request           |      Status:  new
 Priority:  normal                    |   Milestone:  Awaiting Review
Component:  Media                     |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  good-first-bug has-patch  |     Focuses:  performance
--------------------------------------+------------------------------

Comment (by Mista-Flo):

 Hi there,

 I'm definitely for a filter to short circuit this slow query, but I think
 first we need to fix this slow query by implementing a cache, wether it
 use the internal cache API system from Core or the Transient API, (check
 the slack thread we started for further comments)

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


More information about the wp-trac mailing list