[wp-trac] Re: [WordPress Trac] #7237: Multiple clean_post_cache() calls when saving a post due to post revisions

WordPress Trac wp-trac at lists.automattic.com
Mon Apr 20 18:36:53 GMT 2009


#7237: Multiple clean_post_cache() calls when saving a post due to post revisions
--------------------------+-------------------------------------------------
 Reporter:  mdawaffe      |       Owner:  ryan     
     Type:  defect (bug)  |      Status:  new      
 Priority:  lowest        |   Milestone:  2.9      
Component:  General       |     Version:  2.6      
 Severity:  minor         |    Keywords:  has-patch
--------------------------+-------------------------------------------------

Comment(by Denis-de-Bernardy):

 a slightly different approach might work too?

 if is_post_revision() then do nothing, elseif is_page() then clear page
 cache, else clear post cache

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/7237#comment:6>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list