• Resolved Magistar

    (@magistar)


    Report: QFJVJEMS

    Litespeed cache has been set to cache everything for 1 week and purging has been disabled completely. However I still see pages miss on the first visit. For example on 17:09 I visited a page and after that it was cached according to the headers and timestamp in the pagesource. At 17:16 I had another miss and the timestamp updated.

    The crawler shows a lot of missed pages even after a manual run.

    How do I prevent litespeed purching the cache?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support qtwrk

    (@qtwrk)

    Hi,

    please check this page

    need to find out why it purges first , and then see how to deal with it

    Best regards,

    Thread Starter Magistar

    (@magistar)

    Hi, alright I have enabled the debug log and noted the tags of 4 different pages. Now I guess I have to wait.

    In the meanwhile does cache get destroyed when the litespeed webserver restarts? (Htaccess rewrites trigger a restart of the webserver).

    Thread Starter Magistar

    (@magistar)

    Update:
    Ok so yesterday I noted

    <!-- Page generated by LiteSpeed Cache 4.4.3 on 2021-10-22 04:01:10 -->
    <!-- X-LiteSpeed-Cache-Control: public,max-age=604800 -->
    <!-- X-LiteSpeed-Tag: 2ab_HTTP.200,2ab_page,2ab_URL./haarwerken/,2ab_Po.3691,2ab_PGS,2ab_ -->

    I checked 10 hours later:

    view-source:https://x.nl/haarwerken/
    <!-- Page generated by LiteSpeed Cache 4.4.3 on 2021-10-22 11:12:49 -->

    So the tag is missing (because non-admin ip generated the new page?)

    debug.purge.log only contains woocommerce related entries
    debug.log shows only 2 entires for this url

    first entr is from when i manually purged all cache and visited pages:

    0/22/21 04:01:21.506 [myip:52343 1 mTl] ?? ------POST HTTP/1.1 (HTTPS)  /wp-admin/admin-ajax.php
    10/22/21 04:01:21.506 [myip:52343 1 mTl] Query String: 
    10/22/21 04:01:21.506 [myip:52343 1 mTl] HTTP_REFERER: https://x.nl/wp-admin/admin.php?page=wpseo_dashboard
    10/22/21 04:01:21.506 [myip:52343 1 mTl] User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36 Edg/94.0.992.47
    10/22/21 04:01:21.506 [myip:52343 1 mTl] Accept: application/json, text/javascript, */*; q=0.01
    10/22/21 04:01:21.506 [myip:52343 1 mTl] Accept Encoding: gzip, deflate, br
    10/22/21 04:01:21.506 [myip:52343 1 mTl] Cookie _lscache_vary: logged-in:1;role:99
    10/22/21 04:01:21.506 [myip:52343 1 mTl] X-LSCACHE: true
    10/22/21 04:01:21.506 [myip:52343 1 mTl] LSCACHE_VARY_COOKIE: ,wp-postpass_8b9be68da58fe2646ea7a68740b49ca2
    10/22/21 04:01:21.900 [myip:56743 1 EZW] ?? ------GET HTTP/1.1 (HTTPS)  /vestigingen/oosterhout/
    10/22/21 04:01:21.900 [myip:56743 1 EZW] Query String: 
    10/22/21 04:01:21.900 [myip:56743 1 EZW] HTTP_REFERER: https://x.nl/haarwerken/
    10/22/21 04:01:21.900 [myip:56743 1 EZW] User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36 Edg/94.0.992.47
    10/22/21 04:01:21.900 [myip:56743 1 EZW] Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
    10/22/21 04:01:21.900 [myip:56743 1 EZW] Accept Encoding: gzip, deflate, br
    10/22/21 04:01:21.900 [myip:56743 1 EZW] X-LSCACHE: true
    10/22/21 04:01:21.900 [myip:56743 1 EZW] LSCACHE_VARY_COOKIE: ,wp-postpass_8b9be68da58fe2646ea7a68740b49ca2
    10/22/21 04:01:22.334 [myip:52343 1 mTl] [Ctrl] X Cache_control -> stale
    10/22/21 04:01:22.370 [myip:56743 1 EZW] [Ctrl] X Cache_control -> stale
    10/22/21 04:01:22.486 [myip:52343 1 mTl] [Ctrl] X Cache_control -> private ( logged in user )
    10/22/21 04:01:22.486 [myip:52343 1 mTl] [Media] init
    10/22/21 04:01:22.487 [myip:52343 1 mTl] [LQIP] init
    10/22/21 04:01:22.487 [myip:52343 1 mTl] [CDN] init
    10/22/21 04:01:22.488 [myip:52343 1 mTl] [Router] CDN bypassed: ajax call from admin
    10/22/21 04:01:22.488 [myip:52343 1 mTl] ? Task init
    10/22/21 04:01:22.488 [myip:52343 1 mTl] [Router] LSCWP_CTRL bypassed empty
    10/22/21 04:01:22.619 [myip:56743 1 EZW] [Router] get_role: 
    10/22/21 04:01:22.619 [myip:56743 1 EZW] [Media] init
    10/22/21 04:01:22.620 [myip:56743 1 EZW] [LQIP] init
    10/22/21 04:01:22.621 [myip:56743 1 EZW] [Optm] init
    10/22/21 04:01:22.621 [myip:56743 1 EZW] [CDN] init
    10/22/21 04:01:22.622 [myip:56743 1 EZW] ? Task init
    10/22/21 04:01:22.622 [myip:56743 1 EZW] [Router] LSCWP_CTRL bypassed empty
    10/22/21 04:01:22.623 [myip:56743 1 EZW] [GUI] init
    10/22/21 04:01:22.832 [myip:56743 1 EZW] ?? [Tag] Add  --- HTTP.200
    10/22/21 04:01:22.832 [myip:56743 1 EZW] [Ctrl] X Cache_control init on
    10/22/21 04:01:23.824 [myip:52343 1 mTl] [Ctrl] X Cache_control -> no Cache ( Admin page ) => LiteSpeed\Control::set_nocache(( Admin page ))@362 => LiteSpeed\Admin->admin_init()@66 => WP_Hook->apply_filters(ARRAY)@303
    10/22/21 04:01:23.980 [myip:52343 1 mTl] [Core] CHK html bypass: miss footer const
    10/22/21 04:01:23.981 [myip:52343 1 mTl] [Ctrl] not cacheable before ctrl finalize
    10/22/21 04:01:23.981 [myip:52343 1 mTl] [Router] get_role: administrator
    10/22/21 04:01:23.981 [myip:52343 1 mTl] [Vary] role in vary_group [group] 99
    10/22/21 04:01:23.981 [myip:52343 1 mTl] [Vary] show_admin_bar_front: false
    10/22/21 04:01:23.981 [myip:52343 1 mTl] [Vary] no custimzed vary
    10/22/21 04:01:23.981 [myip:52343 1 mTl] [Core] Silence Comment due to REST/AJAX
    10/22/21 04:01:23.982 [myip:52343 1 mTl] ?? X-LiteSpeed-Cache-Control: no-cache
    10/22/21 04:01:23.982 [myip:52343 1 mTl] [Core] CHK html bypass: miss footer const
    10/22/21 04:01:23.982 [myip:52343 1 mTl] End response
    --------------------------------------------------------------------------------
    

    second entry when I visited the page to check the tag:

    10/22/21 14:03:07.410 [myip:58455 1 R87] ?? ------POST HTTP/1.1 (HTTPS)  /
    10/22/21 14:03:07.410 [myip:58455 1 R87] Query String: wc-ajax=get_refreshed_fragments
    10/22/21 14:03:07.410 [myip:58455 1 R87] HTTP_REFERER: https://x.nl/haarwerken/
    10/22/21 14:03:07.410 [myip:58455 1 R87] User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36 Edg/94.0.992.47
    10/22/21 14:03:07.410 [myip:58455 1 R87] Accept: */*
    10/22/21 14:03:07.410 [myip:58455 1 R87] Accept Encoding: gzip, deflate, br
    10/22/21 14:03:07.410 [myip:58455 1 R87] X-LSCACHE: true
    10/22/21 14:03:07.410 [myip:58455 1 R87] LSCACHE_VARY_COOKIE: ,wp-postpass_8b9be68da58fe2646ea7a68740b49ca2
    10/22/21 14:03:08.008 [myip:58455 1 R87] [Ctrl] X Cache_control -> stale
    10/22/21 14:03:08.099 [myip:58455 1 R87] [Router] get_role: 
    10/22/21 14:03:08.099 [myip:58455 1 R87] [Media] init
    10/22/21 14:03:08.100 [myip:58455 1 R87] [LQIP] init
    10/22/21 14:03:08.100 [myip:58455 1 R87] [CDN] init
    10/22/21 14:03:08.101 [myip:58455 1 R87] ? Task init
    10/22/21 14:03:08.101 [myip:58455 1 R87] [Router] LSCWP_CTRL bypassed empty
    10/22/21 14:03:08.101 [myip:58455 1 R87] [GUI] init
    10/22/21 14:03:08.986 [myip:58455 1 R87] ?? [Tag] Add  --- HTTP.200
    10/22/21 14:03:08.986 [myip:58455 1 R87] [Ctrl] X Cache_control init on
    10/22/21 14:03:08.987 [myip:58455 1 R87] ?? [Tag] Add  --- HTTP.200
    10/22/21 14:03:08.988 [myip:58455 1 R87] [Core] CHK html bypass: miss footer const
    10/22/21 14:03:08.988 [myip:58455 1 R87] [Ctrl] X Cache_control off - not GET method:POST
    10/22/21 14:03:08.988 [myip:58455 1 R87] [Ctrl] X Cache_control -> no Cache  => LiteSpeed\Control::set_nocache()@362 => LiteSpeed\Control->finalize()@655 => LiteSpeed\LSC->send_headers()@486
    10/22/21 14:03:08.989 [myip:58455 1 R87] [Router] get_role: 
    10/22/21 14:03:08.989 [myip:58455 1 R87] [Vary] role id: failed, guest
    10/22/21 14:03:08.989 [myip:58455 1 R87] [Router] get_role: 
    10/22/21 14:03:08.989 [myip:58455 1 R87] [Vary] no custimzed vary
    10/22/21 14:03:08.989 [myip:58455 1 R87] [Ctrl] ? forced no cache [reason] DONOTCACHEPAGE const
    10/22/21 14:03:08.989 [myip:58455 1 R87] [Core] Silence Comment due to REST/AJAX
    10/22/21 14:03:08.989 [myip:58455 1 R87] ?? X-LiteSpeed-Cache-Control: no-cache
    10/22/21 14:03:08.990 [myip:58455 1 R87] [Core] CHK html bypass: miss footer const
    10/22/21 14:03:08.990 [myip:58455 1 R87] [Media] bypass: Not frontend HTML type
    10/22/21 14:03:08.990 [myip:58455 1 R87] GUI bypassed by no counter
    10/22/21 14:03:08.990 [myip:58455 1 R87] End response
    --------------------------------------------------------------------------------

    There is no log entry for 11:12:49. Probably because as instructed per guide I selected the admin ip option.

    I will switch debug logging to ‘on’ instead of ‘admin’ and only log 2 pages. Let’s hope that gives the results needed.

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    restart webserver should not make cache purged

    yes , the page tag in HTML comment only shows to admin IP

    meanwhile when you do log , did you do something during this period ? like eidt/publish/change setting ….etc

    Best regards,

    Thread Starter Magistar

    (@magistar)

    No, not that I know of. I thought it was fixed for a bit but it is having the same problem now.

    <!-- Page generated by LiteSpeed Cache 4.4.3 on 2021-11-03 00:19:23 -->
    <!-- X-LiteSpeed-Cache-Control: private,max-age=3600 -->
    <!-- X-LiteSpeed-Tag: 2ab_tag_priv,2ab_ESI.storefront-cart-header,public:2ab_HTTP.200,public:2ab_page,public:2ab_URL./vestigingen/oosterhout/,public:2ab_Po.2953,public:2ab_PGS,public:2ab_ -->
    
    <!-- Page generated by LiteSpeed Cache 4.4.3 on 2021-11-03 00:22:26 -->
    <!-- X-LiteSpeed-Cache-Control: private,max-age=3600 -->
    <!-- X-LiteSpeed-Tag: 2ab_tag_priv,2ab_ESI.storefront-cart-header,public:2ab_HTTP.200,public:2ab_page,public:2ab_URL./vestigingen/oosterhout/,public:2ab_Po.2953,public:2ab_PGS,public:2ab_ -->
    11/03/21 00:19:19.955 [myip:65082 1 Rxj] ?? ------GET HTTP/1.1 (HTTPS)  /vestigingen/oosterhout/
    11/03/21 00:19:19.955 [myip:65082 1 Rxj] Query String: 
    11/03/21 00:19:19.956 [myip:65082 1 Rxj] HTTP_REFERER: https://mywebsite/
    11/03/21 00:19:19.956 [myip:65082 1 Rxj] User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36 Edg/95.0.1020.40
    11/03/21 00:19:19.956 [myip:65082 1 Rxj] Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
    11/03/21 00:19:19.956 [myip:65082 1 Rxj] Accept Encoding: gzip, deflate, br
    11/03/21 00:19:19.956 [myip:65082 1 Rxj] Cookie _lscache_vary: 1fff3418142ade68a9a54b4fe6de96c7
    11/03/21 00:19:19.956 [myip:65082 1 Rxj] X-LSCACHE: true
    11/03/21 00:19:19.956 [myip:65082 1 Rxj] LSCACHE_VARY_COOKIE: ,wp-postpass_8b9be68da58fe2646ea7a68740b49ca2
    11/03/21 00:19:21.203 [myip:65082 1 Rxj] [Ctrl] X Cache_control -> stale
    11/03/21 00:19:21.378 [myip:65082 1 Rxj] [Ctrl] X Cache_control -> private ( logged in user )
    11/03/21 00:19:21.378 [myip:65082 1 Rxj] [Router] get_role: administrator
    11/03/21 00:19:21.379 [myip:65082 1 Rxj] [Media] init
    11/03/21 00:19:21.380 [myip:65082 1 Rxj] [LQIP] init
    11/03/21 00:19:21.380 [myip:65082 1 Rxj] [CDN] init
    11/03/21 00:19:21.381 [myip:65082 1 Rxj] ? Task init
    11/03/21 00:19:21.381 [myip:65082 1 Rxj] [Router] LSCWP_CTRL bypassed empty
    11/03/21 00:19:21.381 [myip:65082 1 Rxj] [GUI] init
    11/03/21 00:19:22.384 [myip:65082 1 Rxj] ?? [Tag] Add  --- HTTP.200
    11/03/21 00:19:22.384 [myip:65082 1 Rxj] [Ctrl] X Cache_control init on
    11/03/21 00:19:23.296 [myip:65082 1 Rxj] [Core] Footer hook called
    11/03/21 00:19:23.299 [myip:65082 1 Rxj] [Core] Footer check passed
    11/03/21 00:19:23.300 [myip:65082 1 Rxj] [Vary] role in vary_group [group] 99
    11/03/21 00:19:23.300 [myip:65082 1 Rxj] [Vary] show_admin_bar_front: false
    11/03/21 00:19:23.300 [myip:65082 1 Rxj] [Vary] set_cookie ---> logged-in:1;role:99
    11/03/21 00:19:23.300 [myip:65082 1 Rxj] [Vary] no custimzed vary
    11/03/21 00:19:23.301 [myip:65082 1 Rxj] ?? X-LiteSpeed-Cache-Control: private,max-age=3600
    11/03/21 00:19:23.301 [myip:65082 1 Rxj] ?? X-LiteSpeed-Tag: 2ab_tag_priv,2ab_ESI.storefront-cart-header,public:2ab_HTTP.200,public:2ab_page,public:2ab_URL./vestigingen/oosterhout/,public:2ab_Po.2953,public:2ab_PGS,public:2ab_
    11/03/21 00:19:23.305 [myip:65082 1 Rxj] [Core] Footer check passed
    11/03/21 00:19:23.305 [myip:65082 1 Rxj] [Media] finalize
    11/03/21 00:19:23.306 [myip:65082 1 Rxj] GUI bypassed by no counter
    11/03/21 00:19:23.306 [myip:65082 1 Rxj] End response
    --------------------------------------------------------------------------------
    
    11/03/21 00:22:23.005 [myip:60237 1 aMZ] ?? ------GET HTTP/1.1 (HTTPS)  /vestigingen/oosterhout/
    11/03/21 00:22:23.005 [83.81.147.247:60237 1 aMZ] Query String: 
    11/03/21 00:22:23.005 [83.81.147.247:60237 1 aMZ] HTTP_REFERER: https://mywebsite/
    11/03/21 00:22:23.005 [83.81.147.247:60237 1 aMZ] User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36 Edg/95.0.1020.40
    11/03/21 00:22:23.005 [83.81.147.247:60237 1 aMZ] Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
    11/03/21 00:22:23.005 [83.81.147.247:60237 1 aMZ] Accept Encoding: gzip, deflate, br
    11/03/21 00:22:23.005 [83.81.147.247:60237 1 aMZ] Cookie _lscache_vary: logged-in:1;role:99
    11/03/21 00:22:23.005 [83.81.147.247:60237 1 aMZ] X-LSCACHE: true
    11/03/21 00:22:23.005 [83.81.147.247:60237 1 aMZ] LSCACHE_VARY_COOKIE: ,wp-postpass_8b9be68da58fe2646ea7a68740b49ca2
    11/03/21 00:22:24.041 [83.81.147.247:60237 1 aMZ] [Ctrl] X Cache_control -> stale
    11/03/21 00:22:24.206 [83.81.147.247:60237 1 aMZ] [Ctrl] X Cache_control -> private ( logged in user )
    11/03/21 00:22:24.206 [83.81.147.247:60237 1 aMZ] [Router] get_role: administrator
    11/03/21 00:22:24.207 [83.81.147.247:60237 1 aMZ] [Media] init
    11/03/21 00:22:24.208 [83.81.147.247:60237 1 aMZ] [LQIP] init
    11/03/21 00:22:24.208 [83.81.147.247:60237 1 aMZ] [CDN] init
    11/03/21 00:22:24.209 [83.81.147.247:60237 1 aMZ] ? Task init
    11/03/21 00:22:24.209 [83.81.147.247:60237 1 aMZ] [Router] LSCWP_CTRL bypassed empty
    11/03/21 00:22:24.209 [83.81.147.247:60237 1 aMZ] [GUI] init
    11/03/21 00:22:25.310 [83.81.147.247:60237 1 aMZ] ?? [Tag] Add  --- HTTP.200
    11/03/21 00:22:25.310 [83.81.147.247:60237 1 aMZ] [Ctrl] X Cache_control init on
    11/03/21 00:22:26.216 [83.81.147.247:60237 1 aMZ] [Core] Footer hook called
    11/03/21 00:22:26.220 [83.81.147.247:60237 1 aMZ] [Core] Footer check passed
    11/03/21 00:22:26.220 [83.81.147.247:60237 1 aMZ] [Vary] role in vary_group [group] 99
    11/03/21 00:22:26.220 [83.81.147.247:60237 1 aMZ] [Vary] show_admin_bar_front: false
    11/03/21 00:22:26.220 [83.81.147.247:60237 1 aMZ] [Vary] no custimzed vary
    11/03/21 00:22:26.220 [83.81.147.247:60237 1 aMZ] ?? X-LiteSpeed-Cache-Control: private,max-age=3600
    11/03/21 00:22:26.221 [83.81.147.247:60237 1 aMZ] ?? X-LiteSpeed-Tag: 2ab_tag_priv,2ab_ESI.storefront-cart-header,public:2ab_HTTP.200,public:2ab_page,public:2ab_URL./vestigingen/oosterhout/,public:2ab_Po.2953,public:2ab_PGS,public:2ab_
    11/03/21 00:22:26.224 [83.81.147.247:60237 1 aMZ] [Core] Footer check passed
    11/03/21 00:22:26.224 [83.81.147.247:60237 1 aMZ] [Media] finalize
    11/03/21 00:22:26.224 [83.81.147.247:60237 1 aMZ] GUI bypassed by no counter
    11/03/21 00:22:26.225 [83.81.147.247:60237 1 aMZ] End response
    --------------------------------------------------------------------------------

    I do not see this page in the debug.purge.log

    Also:
    remove cache at upgrade = off
    automatic removal rules = everything removed

    It must be one of the hooks listed at

    switch_theme
    wp_create_nav_menu
    wp_update_nav_menu
    wp_delete_nav_menu
    create_term
    edit_terms
    delete_term
    add_link
    edit_link
    delete_link

    ?

    Thread Starter Magistar

    (@magistar)

    Wait I now see that when checking the website as in-private that the pages are cached:

    <!-- Page generated by LiteSpeed Cache 4.4.3 on 2021-10-29 11:26:20 -->
    <!-- X-LiteSpeed-Cache-Control: public,max-age=604800 -->
    <!-- X-LiteSpeed-Tag: 2ab_HTTP.200,2ab_page,2ab_URL./vestigingen/breda/,2ab_Po.2912,2ab_PGS,2ab_ -->

    So it seems the primary issue has been fixed by unchecking all automatic removal rules. Is there a setting to cache logged-in users? I do not mind clearing the cache myself the website is pretty static.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Cached pages get purged within minutes’ is closed to new replies.