Title: DONOTCACHE(PAGE|OBJECT|DB) variables
Last modified: September 27, 2019

---

# DONOTCACHE(PAGE|OBJECT|DB) variables

 *  [therealgilles](https://wordpress.org/support/users/chamois_blanc/)
 * (@chamois_blanc)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/donotcachepageobjectdb-variables/)
 * Recent versions of the WooCommerce plugin uses the following variable to specify
   which pages (and AJAX requests) should not be cached:
 *     ```
         define('DONOTCACHEPAGE', true);
         define('DONOTCACHEOBJECT', true);
         define('DONOTCACHEDB', true);
       ```
   
 * I saw that LSCache has some special code to recognize WC pages (cart, checkout,
   my-account). Wouldn’t it be better (and more forward-compatible) to rely on the
   variables instead?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [stanley@litespeed](https://wordpress.org/support/users/stanleylitespeed/)
 * (@stanleylitespeed)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/donotcachepageobjectdb-variables/#post-11975554)
 * Hi [@chamois_blanc](https://wordpress.org/support/users/chamois_blanc/), thanks
   for the suggestion, we will include this feature in next release!
 *  [Rolf Allard van Hagen](https://wordpress.org/support/users/ravanh/)
 * (@ravanh)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/donotcachepageobjectdb-variables/#post-12008907)
 * That’d be awesome since my Google News sitemap plugin uses these too 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘DONOTCACHE(PAGE|OBJECT|DB) variables’ is closed to new replies.

 * ![](https://ps.w.org/litespeed-cache/assets/icon-256x256.png?rev=2554181)
 * [LiteSpeed Cache](https://wordpress.org/plugins/litespeed-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/litespeed-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/litespeed-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/litespeed-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/litespeed-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/litespeed-cache/reviews/)

## Tags

 * [constant](https://wordpress.org/support/topic-tag/constant/)
 * [define](https://wordpress.org/support/topic-tag/define/)
 * [no-cache](https://wordpress.org/support/topic-tag/no-cache/)

 * 2 replies
 * 3 participants
 * Last reply from: [Rolf Allard van Hagen](https://wordpress.org/support/users/ravanh/)
 * Last activity: [6 years, 7 months ago](https://wordpress.org/support/topic/donotcachepageobjectdb-variables/#post-12008907)
 * Status: not a support question