Multiple clean_post_cache() calls when saving a post due to post revisions
|Reported by:||mdawaffe||Owned by:||ryan|
When a post is saved, clean_post_cache() is called for that post. Immediately afterward, the post revision is inserted and clean_post_cache() is called again for that new post row.
Since the current implementation of post revisions does not allow revision edit, has no taxonomy associated with revisions, has no post meta, and shows up in no archive, we can get away with never calling clean_post_cache() during a post revision insert.
If a plugin does any of those things, it can still call clean_post_cache() from any of a few available API actions.
I don't know if this is worth fixing. I don't know how much of a performance impact this "bug" has.
Change History (16)
- Component changed from General to Optimization
- Milestone changed from 2.9 to Future Release
- Milestone changed from Future Release to 2.9
- Type changed from defect (bug) to enhancement
- Keywords reporter-feedback added
- Component changed from Optimization to Revisions
- Keywords revisions-3.6 removed
- Milestone changed from Future Release to 3.6