$38 GRAYBYTE WORDPRESS FILE MANAGER $99

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.15.130 | ADMIN IP 216.73.216.51
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/home/bravetechrwanda/hpgt.org/.log-unix/wp-includes/litespeed/

HOME
Current File : /home/bravetechrwanda/hpgt.org/.log-unix/wp-includes/litespeed//bbpress.cls.php
<?php
/**
 * The Third Party integration with the bbPress plugin.
 *
 * @since      1.0.5
 * @package    LiteSpeed
 * @subpackage LiteSpeed_Cache/thirdparty
 */

namespace LiteSpeed\Thirdparty;

defined( 'WPINC' ) || exit;

use LiteSpeed\Router;

/**
 * Integration for bbPress cache handling and purging.
 */
class BBPress {

	/**
	 * Detect if bbPress is installed and if the page is a bbPress page.
	 *
	 * @since 1.0.5
	 * @access public
	 * @return void
	 */
	public static function detect() {
		if ( function_exists( 'is_bbpress' ) ) {
			add_action( 'litespeed_api_purge_post', __CLASS__ . '::on_purge' ); // todo
			if ( apply_filters( 'litespeed_esi_status', false ) ) {
				// Don't consider private cache yet (will do if any feedback)
				add_action( 'litespeed_control_finalize', __CLASS__ . '::set_control' );
			}
		}
	}

	/**
	 * This filter is used to let the cache know if a page is cacheable.
	 *
	 * @since 1.2.0
	 * @access public
	 * @return void
	 */
	public static function set_control() {
		if ( ! apply_filters( 'litespeed_control_cacheable', false ) ) {
			return;
		}

		// Set non ESI public
		if ( is_bbpress() && Router::is_logged_in() ) {
			do_action( 'litespeed_control_set_nocache', 'bbpress nocache due to loggedin' );
		}
	}

	/**
	 * When a bbPress page is purged, need to purge the forums list and
	 * any/all ancestor pages.
	 *
	 * @since 1.0.5
	 * @access public
	 * @param int $post_id The post id of the page being purged.
	 * @return void
	 */
	public static function on_purge( $post_id ) {
		if ( ! is_bbpress() ) {
			if ( ! function_exists( 'bbp_is_forum' ) || ! function_exists( 'bbp_is_topic' ) || ! function_exists( 'bbp_is_reply' ) ) {
				return;
			}
			if ( ! bbp_is_forum( $post_id ) && ! bbp_is_topic( $post_id ) && ! bbp_is_reply( $post_id ) ) {
				return;
			}
		}

		// Need to purge base forums page, bbPress page was updated.
		do_action( 'litespeed_purge_posttype', bbp_get_forum_post_type() );
		$ancestors = get_post_ancestors( $post_id );

		// If there are ancestors, need to purge them as well.
		if ( ! empty( $ancestors ) ) {
			foreach ( $ancestors as $ancestor ) {
				do_action( 'litespeed_purge_post', $ancestor );
			}
		}

		global $wp_widget_factory;
		$replies_widget = $wp_widget_factory->get_widget_object( 'BBP_Replies_Widget' );
		if ( bbp_is_reply( $post_id ) && $replies_widget ) {
			do_action( 'litespeed_purge_widget', $replies_widget->id );
		}

		$topic_widget = $wp_widget_factory->get_widget_object( 'BBP_Topics_Widget' );
		if ( bbp_is_topic( $post_id ) && $topic_widget ) {
			do_action( 'litespeed_purge_widget', $topic_widget->id );
		}
	}
}

Current_dir [ WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
15 May 2026 10.51 AM
bravetechrwanda / bravetechrwanda
0755
.index-.wp-vendor
--
28 Apr 2026 8.05 AM
bravetechrwanda / bravetechrwanda
0755
debug
--
16 May 2026 4.58 AM
bravetechrwanda / bravetechrwanda
0755
wp-content
--
15 May 2026 3.53 AM
bravetechrwanda / bravetechrwanda
0755
-20260507052239.litespeed_flag
0.29 KB
3 May 2026 1.31 AM
bravetechrwanda / bravetechrwanda
0644
-20260515021334.hcflag
0.029 KB
30 Mar 2026 3.30 AM
bravetechrwanda / bravetechrwanda
0644
.hcflag
0.029 KB
30 Mar 2026 3.30 AM
bravetechrwanda / bravetechrwanda
0644
.litespeed_flag
0.29 KB
3 May 2026 1.31 AM
bravetechrwanda / nobody
0644
admin.php
117.099 KB
28 Apr 2026 9.17 AM
bravetechrwanda / bravetechrwanda
0644
autoloader.php
1.223 KB
18 May 2022 8.49 PM
bravetechrwanda / bravetechrwanda
0644
bbpress.cls.php
2.575 KB
1 Apr 2026 8.54 PM
bravetechrwanda / bravetechrwanda
0644
controller.php
11.765 KB
21 Oct 2025 4.51 PM
bravetechrwanda / bravetechrwanda
0644
error_log
15.343 KB
2 May 2026 6.47 AM
bravetechrwanda / bravetechrwanda
0644
module.php
5.2 KB
30 Mar 2026 1.49 PM
bravetechrwanda / bravetechrwanda
0644
qc.curr-20260428044107.vercheck
0.001 KB
4 Apr 2026 4.04 AM
bravetechrwanda / bravetechrwanda
0644
qc.curr.vercheck
0.001 KB
4 Apr 2026 4.04 AM
bravetechrwanda / bravetechrwanda
0644
qc.last.vercheck
0.01 KB
4 Apr 2026 4.04 AM
bravetechrwanda / bravetechrwanda
0644
robots-20260507063303.txt
0.025 KB
3 Apr 2026 8.02 PM
bravetechrwanda / bravetechrwanda
0644
robots.txt
0.025 KB
3 Apr 2026 8.02 PM
bravetechrwanda / bravetechrwanda
0644
utils.php
12.477 KB
15 Mar 2026 8.35 AM
bravetechrwanda / bravetechrwanda
0644
wp-sec.txt
0 KB
7 May 2026 5.00 AM
bravetechrwanda / bravetechrwanda
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF Static GIF