Title: rlensen's Replies | WordPress.org

---

# rlensen

  [  ](https://wordpress.org/support/users/rlensen/)

 *   [Profile](https://wordpress.org/support/users/rlensen/)
 *   [Topics Started](https://wordpress.org/support/users/rlensen/topics/)
 *   [Replies Created](https://wordpress.org/support/users/rlensen/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/rlensen/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/rlensen/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/rlensen/engagements/)
 *   [Favorites](https://wordpress.org/support/users/rlensen/favorites/)

 Search replies:

## Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Super Page Cache – Cloudflare Cache, Page Speed & Core Web Vitals] Buddyboss (BBpress) Topic cache purge](https://wordpress.org/support/topic/buddyboss-bbpress-topic-cache-purge/)
 *  Thread Starter [rlensen](https://wordpress.org/support/users/rlensen/)
 * (@rlensen)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/buddyboss-bbpress-topic-cache-purge/#post-15404793)
 * Fixed with the snippet
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Super Page Cache – Cloudflare Cache, Page Speed & Core Web Vitals] Buddyboss (BBpress) Topic cache purge](https://wordpress.org/support/topic/buddyboss-bbpress-topic-cache-purge/)
 *  Thread Starter [rlensen](https://wordpress.org/support/users/rlensen/)
 * (@rlensen)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/buddyboss-bbpress-topic-cache-purge/#post-15387403)
 * I think I got it working, with this snippet:
 *     ```
       add_action( 'bbp_new_reply_post_extras', 'cf_purge_cache_reply' );
       add_action( 'bbp_edit_reply_post_extras', 'cf_purge_cache_reply' );
       add_action( 'wp_trash_post', 'cf_purge_cache_reply' );
   
       add_action ('bbp_new_topic_post_extras' , 'cf_purge_cache_topic' ) ;
       add_action ('bbp_edit_topic_post_extras' , 'cf_purge_cache_topic' ) ;
   
       add_action ('bbp_new_forum_post_extras' , 'cf_purge_cache_forum' ) ;
       add_action ('bbp_edit_forum_post_extras' , 'cf_purge_cache_forum' ) ;
   
       function cf_purge_cache_forum ($forum_id) {
       	// Bail if no forum
           $forum_id = get_post( $forum_id );
           if ( empty( $forum_id ) )
               return;
       	$url = get_permalink($forum_id);
       	if($url) {
       		do_action("swcfpc_purge_cache",  array( $url) );		
       	}
       }
   
       function cf_purge_cache_reply ($reply_id) {
       	// Bail if no post
           $reply_id = get_post( $reply_id );
           if ( empty( $reply_id ) )
               return;
       	if (function_exists ('bbp_get_reply_topic_id')){
       		$topic_id = bbp_get_reply_topic_id ($reply_id) ;
       		cf_purge_cache_topic ($topic_id) ;
       		$forum_id = bbp_get_topic_forum_id($topic_id);
       		cf_purge_cache_forum($forum_id);
       	}
       }
   
       function cf_purge_cache_topic ($topic_id) {
   
       	$topic_id = get_post( $topic_id );
           if ( empty( $topic_id ) )
               return;
   
       	$url = get_permalink($topic_id);
       	if($url) {
       		do_action("swcfpc_purge_cache",  array( $url) );		
       	}
   
       }
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[XPoster - Share to Bluesky and Mastodon] Error when using php 7](https://wordpress.org/support/topic/error-when-using-php-7/)
 *  Thread Starter [rlensen](https://wordpress.org/support/users/rlensen/)
 * (@rlensen)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/error-when-using-php-7/#post-6352509)
 * I have mbstring compiled in (PHP version 7.0 from GIT):
 * mbstring
 *     ```
       Multibyte Support	enabled
       Multibyte string engine	libmbfl
       HTTP input encoding translation	disabled
       libmbfl version	1.3.2
       oniguruma version	5.9.6
       mbstring extension makes use of "streamable kanji code filter and converter", which is distributed under the GNU Lesser General Public License version 2.1.
       Multibyte (japanese) regex support	enabled
       Multibyte regex (oniguruma) backtrack check	On
       Multibyte regex (oniguruma) version	5.9.6
       Directive	Local Value	Master Value
       mbstring.detect_order	no value
       mbstring.encoding_translation	Off
       mbstring.func_overload	0
       mbstring.http_input	no value
       mbstring.http_output	no value
       mbstring.http_output_conv_mimetypes	^(text/|application/xhtml\+xml)
       mbstring.internal_encoding	no value
       mbstring.language	neutral
       mbstring.strict_detection	Off
       mbstring.substitute_character	no value
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery] "0 images were uploaded" and my solution](https://wordpress.org/support/topic/0-images-were-uploaded-and-my-solution/)
 *  [rlensen](https://wordpress.org/support/users/rlensen/)
 * (@rlensen)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/0-images-were-uploaded-and-my-solution/#post-4127204)
 * I think it still applies since I’m facing the same problem with Nginx and php-
   fpm
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery] "0 images were uploaded" and my solution](https://wordpress.org/support/topic/0-images-were-uploaded-and-my-solution/)
 *  [rlensen](https://wordpress.org/support/users/rlensen/)
 * (@rlensen)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/0-images-were-uploaded-and-my-solution/#post-4127202)
 * please post it for reference

Viewing 5 replies - 1 through 5 (of 5 total)