[wpmu-trac] Re: [WordPress MU Trac] #557: Object Cache Not Updating
WordPress MU Trac
wpmu-trac at lists.automattic.com
Fri Feb 8 19:01:40 GMT 2008
#557: Object Cache Not Updating
----------------------------------------+-----------------------------------
Reporter: lunabyte | Owner: donncha
Type: defect | Status: assigned
Priority: highest | Milestone: WPMU 1.0
Component: component1 | Version: 1.0
Severity: blocker | Resolution:
Keywords: 1.3.2, 1.3.3, object cache |
----------------------------------------+-----------------------------------
Comment (by atow):
Here a way to reproduce the problem on my end:
<?php
global $blog_id;
$my_blog_id = 3; // Change this to the id of your blog
$my_blog_option = 'my_option_name'; // Change this to the key name of your
option
echo "Using get_blog_option: " . get_blog_option($my_blog_id,
$my_blog_option) . '<br />';
$original_blog = $blog_id;
switch_to_blog($my_blog_id);
echo "switch_to_blog and then get_option: " . get_option($my_blog_option)
. '<br />';
$blog_id = $original_blog;
switch_to_blog($blog_id);
?>
Change the option and then you'll see a difference in the two values.
Hope this helps.
--
Ticket URL: <http://trac.mu.wordpress.org/ticket/557#comment:6>
WordPress MU Trac <http://mu.wordpress.org/>
WordPress Multiuser
More information about the wpmu-trac
mailing list