This is an old revision of the document!


“X-LiteSpeed-Cache: hit,litemage” Header Not Appearing (Magento 1.x)

Symptoms

X-LiteSpeed-Cache: hit,litemage header is missing (LiteMage is not working properly)

Cause

There can be various causes for this problem, but most likely a step was missed in the LiteMage 1.x Installation Guide.

Solution

Please double check the following:

  • Do you have LiteMage enabled for your license? For 1-CPU and lower licenses, you will need to purchase LiteMage as an add-on, while LiteMage starter is included in all 2-CPU and above license. If you just recently upgraded your license by adding LiteMage, you will need to register a new license key with command …/lsws/bin/lshttpd -r and restart LSWS.
  • If some page cached but some not, you should also check if the cache object has been limited by your license. You may need to upgrade LiteMage feature to a higher tier.
  • Do you see X-Litespeed-Cache: miss? If yes, just refresh the page again and it will be served from LiteMage.
  • Have you placed LiteMage On in your store's .htaccess file?
  • Do you host your Magento store on a shared hosting service account? Please contact your hosting company to ensure that they have enabled LiteMage for your account.
  • Have you or your host set the server & virtual host level cache root and cache policy?
  • Has Enable LiteMage Cache been set to Yes under LiteMage Configuration in the Magento admin?
  • Have other full page caches been disabled?
  • If you have set Enable LiteMage Cache Only for Listed IPs, is your IP listed?
  • For LiteMage to work correctly, you must have both Configuration and Layouts enabled under System → Cache Management. If you are using Magento Enterprise, you must also disable Page Cache.
  • Did you try flushing LiteMage Cache and Magento Cache Storage?
  • If you see header x-litespeed-cache-control: esi=on, you can make sure the page is cachable but somehow it has some problem. It may be limited by license objects limitation. It could also be caused by other reason, such as enabling Flareflare cache incorrectly.
  • CloudFlare cache should be disabled otherwise it will break Magento and LiteMage, please refer this

  • If cache very cookie _lscache_very_toolbar is set, then the page won't be cached for the first hit. You should be able to see cache miss the second hit, and cache hit for the third hit.

Let 's see an example: First hit: see Magento frontend and frontend_cid cookie with lscache very header

Second hit: See Magento frontend and frontend_cid cookie with cache miss

Third hit: see cache hit header

  • Admin
  • Last modified: 2017/11/10 20:54
  • by Jackson Zhang