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:

http://your-magento-domainname/home-decor/books-music/alice-in-wonderland.html

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:

http://your-magento-domainname/home-decor/books-music/alice-in-wonderland.html?LITEMAGE_DEBUG=NOCACHE

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