[wp-trac] [WordPress Trac] #14080: Needless wp_cache_delete() inside set_theme_mod()
    WordPress Trac 
    wp-trac at lists.automattic.com
       
    Thu Oct 28 04:48:26 UTC 2010
    
    
  
#14080: Needless wp_cache_delete() inside set_theme_mod()
--------------------------+-------------------------------------------------
 Reporter:  shidouhikari  |       Owner:     
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.1
Component:  Cache         |     Version:     
 Severity:  normal        |    Keywords:     
--------------------------+-------------------------------------------------
Comment(by nacin):
 The cache deletion doesn't remove it from the database. It's not adding
 more things to the database. All it is doing is forcing the next call of
 get_theme_mod() to skip the object cache and go straight for the new DB
 option. Though I think the OP is right that update_option() updates the
 object cache in this situation, therefore rendering the delete_cache()
 call unnecessary.
-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/14080#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
    
    
More information about the wp-trac
mailing list