rlensen
Forum Replies Created
Viewing 5 replies - 1 through 5 (of 5 total)
-
Fixed with the snippet
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
In reply to: [XPoster - Share to Bluesky and Mastodon] Error when using php 7I 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 valueI think it still applies since I’m facing the same problem with Nginx and php-fpm
please post it for reference
Viewing 5 replies - 1 through 5 (of 5 total)