[wp-trac] [WordPress Trac] #6860: Make clean_post_cache child cleaning optional

WordPress Trac wp-trac at lists.automattic.com
Sun Apr 27 22:13:40 GMT 2008


#6860: Make clean_post_cache child cleaning optional
-------------------------+--------------------------------------------------
 Reporter:  arnee        |       Owner:  anonymous
     Type:  enhancement  |      Status:  new      
 Priority:  normal       |   Milestone:  2.5.2    
Component:  General      |     Version:  2.5.1    
 Severity:  normal       |    Keywords:           
-------------------------+--------------------------------------------------
 clean_post_cache() makes a MySQL query in every call to clean the cache
 for child posts. This should be optional if the caller knows that there
 are no child posts or they're not cached.

 Background: I need to query all posts have to clean the post cache to stay
 within the memory limits. Before 2.5 this was fine with clean_post_cache,
 but since the update the php execution time increased extremely because of
 this additional db query.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/6860>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list