WordPress.org

Make WordPress Core

Opened 6 years ago

Last modified 5 weeks ago

#33885 new defect (bug)

meta_form performs a potentially expensive query — at Initial Version

Reported by: jorbin Owned by:
Milestone: Future Release Priority: normal
Severity: critical Version: 4.3.1
Component: Administration Keywords: has-patch needs-testing needs-unit-tests
Focuses: performance Cc:

Description

This is a follow-up to #24498 and the research that @tollmanz did on the query used in meta_form. To summerize:

The query in meta_form can be incredibly slow on sites with a lot of post meta.

The solution to me seems to be to cache the query and update the cache of meta to use everytime a new piece of post_meta is saved. This will prevent the query from needing to be run on sites with a persistant cache.

Change History (0)

Note: See TracTickets for help on using tickets.