Make WordPress Core

Opened 11 months ago

#58740 new defect (bug)

Slow load in media page of WordPress admin when having huge posts table

Reported by: twellve_million's profile Twellve_Million Owned by:
Milestone: Awaiting Review Priority: normal
Severity: minor Version: 6.2.2
Component: Media Keywords: needs-patch
Focuses: Cc:

Description

Slow load can be traced to this function.

// get_available_post_mime_types
// wp-includes/post.php

From what I understand, this function tries to get all of the available mime type of attachment post type. When posts are over a hundred thousand, this is causing media page in admin to load in about half a minute (hosting performance relative).

I'd like to suggest a transient in this function. Will open a PR if this bug is approved.

Change History (0)

Note: See TracTickets for help on using tickets.