Make WordPress Core

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)

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

Download all attachments as: .zip

Change History (2)

@mohanjith
15 years ago

#1 @SergeyBiryukov
15 years ago

  • Milestone Awaiting Review
  • Resolutionduplicate
  • Status newclosed
Note: See TracTickets for help on using tickets.