← All changes
|
includes/compat/charitable-litespeed-cache-compat-functions.php
+2
-1
1.7.0.12
→
1.8.13
View file →
| @@ -3,9 +3,9 @@ | ||
| 3 | 3 | * Functions to improve compatibility with Litespeed Cache. |
| 4 | 4 | * |
| 5 | 5 | * @package Charitable/Functions/Compatibility |
| 6 | 6 | * @author David Bisset |
| 7 | - * @copyright Copyright (c) 2022, WP Charitable LLC | |
| 7 | + * @copyright Copyright (c) 2023, WP Charitable LLC | |
| 8 | 8 | * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License |
| 9 | 9 | * @since 1.6.14 |
| 10 | 10 | * @version 1.6.14 |
| 11 | 11 | */ |
| @@ -22,8 +22,9 @@ | ||
| 22 | 22 | * |
| 23 | 23 | * @return void |
| 24 | 24 | */ |
| 25 | 25 | function charitable_compat_litespeed_cache_disable_cache() { |
| 26 | + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedConstantFound -- LSCACHE_NO_CACHE is a third-party constant defined by LiteSpeed Cache plugin for compatibility. | |
| 26 | 27 | define( 'LSCACHE_NO_CACHE', true ); |
| 27 | 28 | } |
| 28 | 29 | |
| 29 | 30 | add_action( 'charitable_do_not_cache', 'charitable_compat_litespeed_cache_disable_cache' ); |