Make WordPress Core

Opened 3 years ago

Last modified 2 years ago

#58740 new defect (bug)

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

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

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 (1)

This ticket was mentioned in Slack in #core-media by antpb. View the logs.


2 years ago

Note: See TracTickets for help on using tickets.