[wp-trac] [WordPress Trac] #19822: get_blog_option doesn't return new value once the same option is updated with update_option

WordPress Trac wp-trac at lists.automattic.com
Fri Jan 13 10:15:25 UTC 2012


#19822: get_blog_option doesn't return new value once the same option is updated
with update_option
--------------------------+-----------------------------
 Reporter:  mohanjith     |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Multisite     |    Version:  3.3.1
 Severity:  major         |   Keywords:  has-patch
--------------------------+-----------------------------
 Once a blog option is cached into object cache any updates to the same
 option made with `update_option()` are not propagated unless the cache
 expires or is removed by other means.

 In the attached patch I hook onto `updated_option` action and update the
 option cached into site-options group and also calls
 `refresh_blog_details($wpdb->blogid)` if the updated option concerns blog
 details (Only for 'blogname','siteurl','post_count').

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


More information about the wp-trac mailing list