# charitable/1.7.0.2/includes/compat/charitable-litespeed-cache-compat-functions.php

Charitable – Donation &amp; Fundraising Platform (Donation Forms, Recurring Donations &amp; Fundraising Campaigns), version 1.7.0.2. 30 lines.

- Page: https://pluginprobe.com/plugins/charitable/1.7.0.2/code/includes/compat/charitable-litespeed-cache-compat-functions.php
- Raw: https://pluginprobe.com/plugins/charitable/1.7.0.2/raw/includes/compat/charitable-litespeed-cache-compat-functions.php
- Modified: 2022-09-21T15:01:56+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/charitable/1.7.0.2/code/includes/compat/charitable-litespeed-cache-compat-functions.php#L10-L20`.

```php
<?php
/**
 * Functions to improve compatibility with Litespeed Cache.
 *
 * @package   Charitable/Functions/Compatibility
 * @author    David Bisset
 * @copyright Copyright (c) 2022, WP Charitable LLC
 * @license   http://opensource.org/licenses/gpl-2.0.php GNU Public License
 * @since     1.6.14
 * @version   1.6.14
 */

// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
 * Disable cache in Litespeed.
 *
 * @since  1.6.14
 *
 * @return void
 */
function charitable_compat_litespeed_cache_disable_cache() {
	define( 'LSCACHE_NO_CACHE', true );
}

add_action( 'charitable_do_not_cache', 'charitable_compat_litespeed_cache_disable_cache' );

```
