WordPress.org

Make WordPress Core

Opened 10 years ago

Closed 10 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)

patch.diff (1.4 KB) - added by mohanjith 10 years ago.

Download all attachments as: .zip

Change History (2)

@mohanjith
10 years ago

#1 @SergeyBiryukov
10 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.