Differences

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

Link to this comparison view

litespeed_wiki:cache:litemage:troubleshooting:turn-off-for-certain-ips [2016/05/06 14:01] (current)
Michael Alegre created
Line 1: Line 1:
 +====== How to temporarily turn off LiteMage for certain URLs in browser ======
  
 +You may want to confirm whether or not an issue on a particular site is being caused by LiteMage Cache being enabled but do not want to disable LiteMage Cache for everyone. You can do this by adding the GET parameter "​LITEMAGE_DEBUG=NOCACHE"​ to the site's URL which will cause the page to not be served by LiteMage (available since 1.0.2). ​
 +
 +For example: Enable LiteMage cache for your store and test the following URL:
 +<​code>​
 +http://​your-magento-domainname/​home-decor/​books-music/​alice-in-wonderland.html
 +</​code>​
 +Check the HTML response header for "​X-LiteSpeed-Cache:​ hit,​litemage",​ as detailed in "How to check if a page is served from LiteMage Cache" above.
 +
 +Now to see the same page not being served by LiteMage, simply append "?​LITEMAGE_DEBUG=NOCACHE"​ to the end of any URL. For example:
 +
 +<​code>​
 +http://​your-magento-domainname/​home-decor/​books-music/​alice-in-wonderland.html?​LITEMAGE_DEBUG=NOCACHE
 +</​code>​
 +This will retrieve the current page from the backend, bypassing LiteMage Cache. When checking the HTML response header for the page, "​X-LiteSpeed-Cache:​ hit,​litemage"​ should no longer be listed.
 +
 +This is useful for checking the accuracy of the currently cached version of a page and also the quickest way to debug LiteMage for specific URLs.
  • Admin
  • Last modified: 2016/05/06 14:01
  • by Michael Alegre