Differences

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

Link to this comparison view

Next revision
Previous revision
litespeed_wiki:cache:litemage:troubleshooting:sometimes-hit-sometimes-miss [2017/05/05 17:13]
Jackson Zhang created
litespeed_wiki:cache:litemage:troubleshooting:sometimes-hit-sometimes-miss [2017/05/08 14:12] (current)
Jackson Zhang [Storage Cleanup]
Line 1: Line 1:
-===== My homepage sometimes cache miss and sometimes cache hit ===== +~~NOTOC~~ 
-When you initially setup LiteMage ​and get everything right, you should see X-Litespeed-Cache:​miss” for the first time visit page, then if you refresh ​the page, you should see X-LiteSpeed-Cache:​ hit,​litemage”. All visitors should see cache hit for that URL.+===== What Causes a Cache Miss? ===== 
 +====New Installation==== 
 +When you initially setup LiteMage, if it is configured correctly, you should see **X-Litespeed-Cache:​miss** the first time you visit your homepage. This is normal behavior. That first page load is what populates ​the cache, and for every reload after that, you (and your visitors) ​should see **X-LiteSpeed-Cache:​ hit,​litemage**.
  
-How about if have many URLs and want all pages served from cache instead of cache miss? You can setup [[litespeed_wiki:​cache:​litemage:​troubleshooting:​warmup|cache ​warmup]] for your store. ​+What if you have many URLs and want //all// of the pages served from cache the first time a visitor loads them? You can set up the crawler to [[litespeed_wiki:​cache:​litemage:​troubleshooting:​warmup|warm up the cache]] for your store.  After a warm up, all URLs will be served from cache.  
 + 
 +====Expired Cache==== 
 +You may occasionally see a cache miss after your store has been running a while. This can be due to cache that has expired through public TTL. If you want to avoid cache misses like this, Magento will need to run the warm up on a regular basis. On the other hand, you don't want the warm up running at the back end //all// of the time, because it will use CPU resources and push the server load higher. Follow this rule of thumb to keep the cache fresh while minimizing server load impact: If warm up running time = X, set warm up interval = 3X and public TTL = 4X. 
 + 
 +====Storage Cleanup==== 
 +If you have your system set to clean up the cache storage directory regularly, you will see a cache miss after the directory files have been removed. Normally there is no need to remove files under the cache root manually, the server will remove expired entries automatically. 
 + 
 +==== Hit cache object limit ==== 
 +For a large store, it may hit your LiteMage license limit, such as 1500 objects for starter plan, you should upgrade your litemage to a higher plan.
  • Admin
  • Last modified: 2017/05/05 17:13
  • by Jackson Zhang