From 553dba3816597ebef033d614626a59dbfadd6800 Mon Sep 17 00:00:00 2001 From: Gawuww Date: Tue, 12 May 2026 09:31:48 +0300 Subject: [PATCH] FIX: Litespeed Cache plugin compatibility https://github.com/Crocoblock/jetformbuilder/issues/603 --- compatibility/litespeed/litespeed.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/compatibility/litespeed/litespeed.php b/compatibility/litespeed/litespeed.php index fd01a4e98..3e222bd0d 100644 --- a/compatibility/litespeed/litespeed.php +++ b/compatibility/litespeed/litespeed.php @@ -18,7 +18,11 @@ public function rep_item_id() { } public function condition(): bool { - return defined( 'LSCWP_V' ); + if ( ! defined( 'LSCWP_V' ) ) { + return false; + } + + return (bool) apply_filters( 'litespeed_esi_status', false ); } public function init_hooks() {