Opened 13 years ago
Closed 13 years ago
#19822 closed defect (bug) (duplicate)
get_blog_option doesn't return new value once the same option is updated with update_option
Reported by: | mohanjith | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | major | Version: | 3.3.1 |
Component: | Multisite | Keywords: | has-patch |
Focuses: | Cc: |
Description
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').
Attachments (1)
Change History (2)
Note: See
TracTickets for help on using
tickets.
#15548