[buddypress-trac] [BuddyPress] #4759: Group forum permalink after reply broken when using persistent object cache
buddypress-trac
noreply at wordpress.org
Thu Jan 10 13:51:48 UTC 2013
#4759: Group forum permalink after reply broken when using persistent object cache
--------------------------------------+------------------------------
Reporter: wpdennis | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Forums | Version: 1.6.1
Severity: blocker | Resolution:
Keywords: dev-feedback 2nd-opinion |
--------------------------------------+------------------------------
Comment (by wpdennis):
Paul, it's the bundled version. I'm running a WP 3.5 multisite with
subdomains. BP is sitewide activated.
I think I just found something.
The reason why new replies aren't visible, is that ''bb_cache_posts()''
returns old ids by:
{{{
wp_cache_get( $key, 'bb_cache_posts_post_ids' )
}}}
The cached value is old. But in ''bb_insert_post()'' I've found:
{{{
wp_cache_flush( 'bb_forums' );
wp_cache_flush( 'bb_query' );
wp_cache_flush( 'bb_cache_posts_post_ids' );
}}}
So it should'nt be out dated, right? Digging deeper: ''wp_cache_flush()''
calls ''flush()'' in object-cache.php from
[http://wordpress.org/extend/plugins/memcached/ memcached]:
{{{
function flush() {
// Don't flush if multi-blog.
if ( function_exists('is_site_admin') ||
defined('CUSTOM_USER_TABLE') && defined('CUSTOM_USER_META_TABLE') )
return true;
$ret = true;
foreach ( array_keys($this->mc) as $group )
$ret &= $this->mc[$group]->flush();
return $ret;
}
}}}
[http://codex.wordpress.org/WPMU_Functions/is_site_admin is_site_admin()]
is deprecated but exists. Is it possible, that every wp_cache_flush fails
in a multisite installation and that's the only reason for all issues?
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4759#comment:2>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list