[wp-trac] [WordPress Trac] #7237: Multiple clean_post_cache() calls
when saving a post due to post revisions
WordPress Trac
wp-trac at lists.automattic.com
Thu Jul 3 20:58:49 GMT 2008
#7237: Multiple clean_post_cache() calls when saving a post due to post revisions
----------------------+-----------------------------------------------------
Reporter: mdawaffe | Owner: anonymous
Type: defect | Status: new
Priority: lowest | Milestone: 2.7
Component: General | Version: 2.6
Severity: minor | Keywords:
----------------------+-----------------------------------------------------
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.
Attached.
I don't know if this is worth fixing. I don't know how much of a
performance impact this "bug" has.
--
Ticket URL: <http://trac.wordpress.org/ticket/7237>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list