[wp-trac] [WordPress Trac] #31071: media / post_mime_type related queries are very slow on larger sites
WordPress Trac
noreply at wordpress.org
Thu Apr 13 20:21:47 UTC 2017
#31071: media / post_mime_type related queries are very slow on larger sites
-------------------------------------------+--------------------------
Reporter: archon810 | Owner: pento
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 4.7.4
Component: Media | Version: 4.1
Severity: normal | Resolution:
Keywords: has-patch dev-feedback commit | Focuses: performance
-------------------------------------------+--------------------------
Comment (by jnylen0):
In [changeset:"40421"]:
{{{
#!CommitTicketReference repository="" revision="40421"
Media: Improve filters that allow overriding slow media queries.
As a follow-up to [40382], this commit makes the following improvements:
- Make the filter names more specific.
- Fix the inline documentation (use `@param` instead of `@return).
- Use `null ===` instead of `is_null` to avoid extra function calls.
- Rename the `$has_audio` and `$has_video` variables now that they
actually represent something slightly different.
See #31071.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31071#comment:72>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list