Cache always misses
-
Hi,
I always see X-LiteSpeed-Cache: miss in the headers on the fresh plugin install with only default settings. I checked the front page, other pages, and posts using https://check.lscache.io/ .
I tried the three steps in https://docs.litespeedtech.com/lscache/lscwp/troubleshoot/#cache-always-misses : 1) Disable and then re-enable (or even reinstall) LSCache doesn’t help. 2) My shared hosting provider checked and said the cache directory has the proper permissions (0755). 3) I couldn’t understand the recommendation about CDN’s cache functions.
Here’s the debug log of two consecutive checks of the same page from https://check.lscache.io/ :
01/17/22 09:16:11.492 [138.197.64.167:53420 1 GgA] ?? ------GET HTTP/1.1 (HTTPS) /about/contact/ 01/17/22 09:16:11.492 [138.197.64.167:53420 1 GgA] Query String: 01/17/22 09:16:11.988 [138.197.64.167:53420 1 GgA] [Router] get_role: 01/17/22 09:16:11.993 [138.197.64.167:53420 1 GgA] [Optm] init 01/17/22 09:16:12.097 [138.197.64.167:53420 1 GgA] ?? [Tag] Add --- HTTP.200 01/17/22 09:16:12.097 [138.197.64.167:53420 1 GgA] [Ctrl] X Cache_control init on 01/17/22 09:16:12.182 [138.197.64.167:53420 1 GgA] [Core] Footer hook called 01/17/22 09:16:12.183 [138.197.64.167:53420 1 GgA] [Core] Footer check passed 01/17/22 09:16:12.184 [138.197.64.167:53420 1 GgA] [Router] get_role: 01/17/22 09:16:12.184 [138.197.64.167:53420 1 GgA] [Router] get_role: 01/17/22 09:16:12.184 [138.197.64.167:53420 1 GgA] [Vary] role id: failed, guest 01/17/22 09:16:12.184 [138.197.64.167:53420 1 GgA] [Router] get_role: 01/17/22 09:16:12.184 [138.197.64.167:53420 1 GgA] [Router] get_role: 01/17/22 09:16:12.184 [138.197.64.167:53420 1 GgA] ?? X-LiteSpeed-Cache-Control: public,max-age=604800 01/17/22 09:16:12.184 [138.197.64.167:53420 1 GgA] ?? X-LiteSpeed-Tag: b4d_HTTP.200,b4d_page,b4d_URL./about/contact/,b4d_Po.189,b4d_PGS,b4d_ 01/17/22 09:16:12.185 [138.197.64.167:53420 1 GgA] [Core] Footer check passed 01/17/22 09:16:12.185 [138.197.64.167:53420 1 GgA] [Media] finalize 01/17/22 09:16:12.185 [138.197.64.167:53420 1 GgA] [Optm] start 01/17/22 09:16:12.185 [138.197.64.167:53420 1 GgA] End response -------------------------------------------------------------------------------- 01/17/22 09:16:15.804 [138.197.64.167:53422 1 ead] ?? ------GET HTTP/1.1 (HTTPS) /about/contact/ 01/17/22 09:16:15.804 [138.197.64.167:53422 1 ead] Query String: 01/17/22 09:16:16.798 [138.197.64.167:53422 1 ead] [Router] get_role: 01/17/22 09:16:16.804 [138.197.64.167:53422 1 ead] [Optm] init 01/17/22 09:16:16.936 [138.197.64.167:53422 1 ead] ?? [Tag] Add --- HTTP.200 01/17/22 09:16:16.936 [138.197.64.167:53422 1 ead] [Ctrl] X Cache_control init on 01/17/22 09:16:17.037 [138.197.64.167:53422 1 ead] [Core] Footer hook called 01/17/22 09:16:17.038 [138.197.64.167:53422 1 ead] [Core] Footer check passed 01/17/22 09:16:17.040 [138.197.64.167:53422 1 ead] [Router] get_role: 01/17/22 09:16:17.040 [138.197.64.167:53422 1 ead] [Router] get_role: 01/17/22 09:16:17.040 [138.197.64.167:53422 1 ead] [Vary] role id: failed, guest 01/17/22 09:16:17.040 [138.197.64.167:53422 1 ead] [Router] get_role: 01/17/22 09:16:17.040 [138.197.64.167:53422 1 ead] [Router] get_role: 01/17/22 09:16:17.040 [138.197.64.167:53422 1 ead] ?? X-LiteSpeed-Cache-Control: public,max-age=604800 01/17/22 09:16:17.040 [138.197.64.167:53422 1 ead] ?? X-LiteSpeed-Tag: b4d_HTTP.200,b4d_page,b4d_URL./about/contact/,b4d_Po.189,b4d_PGS,b4d_ 01/17/22 09:16:17.041 [138.197.64.167:53422 1 ead] [Core] Footer check passed 01/17/22 09:16:17.041 [138.197.64.167:53422 1 ead] [Media] finalize 01/17/22 09:16:17.041 [138.197.64.167:53422 1 ead] [Optm] start 01/17/22 09:16:17.041 [138.197.64.167:53422 1 ead] End response --------------------------------------------------------------------------------
If it helps, https://check.lscache.io/ shows the following HTTP Header:
HTTP/1.1 200 OK Connection: Keep-Alive Keep-Alive: timeout=5, max=100 x-powered-by: PHP/7.4.16 content-type: text/html; charset=UTF-8 x-litespeed-cache-control: public,max-age=604800 x-litespeed-tag: b4d_HTTP.200,b4d_page,b4d_URL.9ee5f66c2a382811a8fb64e8e833f45b,b4d_Po.189,b4d_PGS,b4d_ etag: "716-1642430171;gz" x-litespeed-cache: miss transfer-encoding: chunked content-encoding: gzip vary: Accept-Encoding date: Mon, 17 Jan 2022 14:36:11 GMT server: LiteSpeed alt-svc: h3=":443"; ma=2592000, h3-29=":443"; ma=2592000, h3-Q050=":443"; ma=2592000, h3-Q046=":443"; ma=2592000, h3-Q043=":443"; ma=2592000, quic=":443"; ma=2592000; v="43,46"
- The topic ‘Cache always misses’ is closed to new replies.