#15914 closed defect (bug) (invalid)
wp_check_post_hierarchy_for_loops can run alot of queries
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.1 |
Component: | Administration | Keywords: | has-patch reporter-feedback |
Focuses: | Cc: |
Description
If you have a post with alot of revisions and you save a new revision we will scan through all the revisions checking them out even though they are not really hierarchical.
This means that the revision save doesn't work as the page times out while still running all the queries.
We could probably either do some caching with a better call to get_posts first or not run this code for revisions.
Attachments (1)
Change History (8)
#3
@
10 years ago
The only time I see a revision processed is when autosave triggers. The loop checker walks up the autosave's 'page' parents. I see no revisions beyond the one autosave revision being processed.
#5
@
10 years ago
I'm still trying to reproduce this with core post types and understand why the CPT I'm seeing this with is different.
Note: See
TracTickets for help on using
tickets.
Just skip it for revisions.