Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
litespeed_wiki:cache:lscwp:bypass [2018/07/10 13:21]
Eric Leu
litespeed_wiki:cache:lscwp:bypass [2020/11/14 15:32] (current)
Lisa Clarke Redirect to new Documentation Site
Line 1: Line 1:
-If there'​s any reason like conflict and you need to bypass CDN or optimize in Ajax, you can use following methods +~~REDIRECT>https://docs.litespeedtech.com/​lscache/​lscwp/​ts-cdn/~~
- +
-  - In your theme'​s ''​functions.php'':​  +
-    * To bypass CDN <code> +
-defined( '​DOING_AJAX'​ ) && add_filter( '​litespeed_can_cdn',​ '​__return_false'​ ); +
-</code> +
-    * To bypass Optimize <​code>​ +
-defined( '​DOING_AJAX'​ ) && add_filter( '​litespeed_can_optm',​ '​__return_false'​ ); +
-</code> +
-  ​Or call the filter when using AJAX and return false to bypass CDN/Optimize+
  • Admin
  • Last modified: 2018/07/10 13:21
  • by Eric Leu