DONOTCACHE(PAGE|OBJECT|DB) 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)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘DONOTCACHE(PAGE|OBJECT|DB) variables’ is closed to new replies.