| Server IP : 217.160.0.223 / Your IP : 216.73.216.72 Web Server : Apache System : Linux www 6.18.38-i1-ampere+ #1089 SMP Tue Jul 7 14:54:42 CEST 2026 aarch64 User : sws1073902667 ( 1073902667) PHP Version : 8.2.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/www/public/wp-content/plugins/litespeed-cache/thirdparty/ |
Upload File : |
<?php
/**
* The Third Party integration with the Beaver Builder plugin.
*
* @since 3.0
* @package LiteSpeed
* @subpackage LiteSpeed_Cache/thirdparty
*/
namespace LiteSpeed\Thirdparty;
defined( 'WPINC' ) || exit;
/**
* Integration for Beaver Builder cache handling and purging.
*/
class Beaver_Builder {
/**
* Detects if Beaver_Builder is active.
*
* @since 3.0
* @access public
* @return void
*/
public static function detect() {
if ( ! defined( 'FL_BUILDER_VERSION' ) ) {
return;
}
/**
* Purge All hooks.
*
* @see beaver-builder/extensions/fi-builder-cache-helper/classes/class-fi-builder-cache-helper.php
*/
$actions = array(
'fl_builder_cache_cleared',
'fl_builder_after_save_layout',
'fl_builder_after_save_user_template',
'upgrader_process_complete',
);
foreach ( $actions as $val ) {
add_action( $val, __CLASS__ . '::purge' );
}
}
/**
* Purges the cache when Beaver_Builder's cache is purged.
*
* @since 3.0
* @access public
* @return void
*/
public static function purge() {
do_action( 'litespeed_purge_all', '3rd Beaver_Builder' );
}
}