Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Memcached and deleting comments

@shpitzyl

Participant

Found a solution. The function bp_activity_delete_comment doesn’t clear the cache. If someone here uses memcached put this code in your function.php

function wtrp_comment_delete_cache( $activity_id, $comment_id ){
  wp_cache_delete( $activity_id, 'bp_activity_comments' );
}

add_action( 'bp_activity_delete_comment', 'wtrp_comment_delete_cache' );
Skip to toolbar