[wpmu-trac] [WordPress MU Trac] #355: update_option cache issue when creating new blogs

WordPress MU Trac wpmu-trac at lists.automattic.com
Fri Jun 15 05:30:12 GMT 2007


#355: update_option cache issue when creating new blogs
------------------------+---------------------------------------------------
 Reporter:  kingler     |       Owner:  somebody           
     Type:  defect      |      Status:  new                
 Priority:  highest     |   Milestone:                     
Component:  component1  |     Version:                     
 Severity:  critical    |    Keywords:  update_option cache
------------------------+---------------------------------------------------
 In wp-includes/functions.php, within the function get_option()

 The following line 224 and 225 were commented out.

 #wp_cache_delete('notoptions', 'options');
 #wp_cache_delete('alloptions', 'options');

 You need to uncomment these two lines. Otherwise, when a new blog is
 created, the "siteurl", "home", "blogname" options will be inserted TWICE!
 And using get_last_updated() function in the home theme, you will not be
 able to see the correct blogname and etc, because only the first option
 (the default "My Weblog" as blogname) in the database table were fetched.

 To repeat the issue, simply install a fresh 1.2.2 and create a new blog.
 Visit the home page and you will see "My Weblog" as the name for the new
 blog instead of whatever you set when signing up.

 Uncommenting the above two lines will do the trick, but I don't know why
 Donncha left the two lines commented out by default. Any comments?

-- 
Ticket URL: <http://trac.mu.wordpress.org/ticket/355>
WordPress MU Trac <http://mu.wordpress.org/>
WordPress Multiuser


More information about the wpmu-trac mailing list