Opened 15 years ago
Closed 15 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: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Multisite | Version: | 3.3.1 |
| Severity: | major | Keywords: | has-patch |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
#15548