[buddypress-trac] [BuddyPress] #4759: Group forum permalink after reply broken when using persistent object cache
buddypress-trac
noreply at wordpress.org
Thu Jan 10 16:34:46 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):
If we are sure, and someone can confirm that ''wp_cache_flush()'' is the
problem, we could add the following during the initialization of
BuddyPress:
{{{
if (bp_is_active('forums') && function_exists('is_site_admin') &&
function_exists('wp_cache_add_non_persistent_groups'))
wp_cache_add_non_persistent_groups(array('bb_query',
'bb_cache_posts_post_ids', 'bb_forums', 'bb_topics', 'bb_posts',
'bb_forum', 'bb_topic', 'bb_post', 'bb_option', 'bb_option_not_set',
'bb_topic_tag_terms'));
}}}
Read: if the function 'is_site_admin' exists ''wp_cache_flush()'' doesn't
work, so we could disable forum caching by adding the bbPress groups to
non persistent groups.
This would hotfix the issue. Since it's obsolete in BP 1.7 maybe this
hotfix is enough.
This needs some testing. I'm not deep enough into bbPress but adding
wp_cache_add_non_persistent_groups in one of my plugins solved the issues,
as far as I can tell right now.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4759#comment:3>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list