• Resolved AWOL

    (@awol)


    Hi,

    Report: HVKWJSXB

    Site: https://sentlive.com

    I am getting cache-control no-cache, must-revalidate, max-age=0, no-store, private and x-litespeed-cache-control no-cache on all of the pages on my site. I have gone through the debug process, removed all the excludes but nothing has changed.

    Site Health is also giving me this: Page cache is not detected and the server response time is slow – this is what got me to check things in the first place.

    Can you advise how to proceed now? The server is LiteSpeed before you ask.

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

    (@qtwrk)

    please try grab the plugin log

    log will state why no cache

    Thread Starter AWOL

    (@awol)

    Hi @qtwrk,

    All I was getting on the logs was [Ctrl] ? forced no cache [reason] DONOTCACHEPAGE const

    I searched this on the forum and added add_filter( ‘litespeed_const_DONOTCACHEPAGE’, ‘__return_false’ ); to my child theme functions; now I am only getting x-litespeed-cache-control miss and the log file (below) doesn’t give me any clues – maybe you can see something? This is one section of the log file:


    02/05/24 10:23:48.544 [58.11.82.7:53627 1 Kop] ?? ——GET HTTP/1.1 (HTTPS) /activity/
    02/05/24 10:23:48.544 [58.11.82.7:53627 1 Kop] Query String:
    02/05/24 10:23:48.544 [58.11.82.7:53627 1 Kop] HTTP_REFERER: https://sentlive.com/welcome/
    02/05/24 10:23:48.544 [58.11.82.7:53627 1 Kop] User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:122.0) Gecko/20100101 Firefox/122.0
    02/05/24 10:23:48.544 [58.11.82.7:53627 1 Kop] Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,/;q=0.8
    02/05/24 10:23:48.544 [58.11.82.7:53627 1 Kop] Accept Encoding: gzip, deflate, br
    02/05/24 10:23:48.544 [58.11.82.7:53627 1 Kop] Cookie lscache_vary: 246bbec6a69bd47ac650d37f2c45eb96 02/05/24 10:23:48.544 [58.11.82.7:53627 1 Kop] X-LSCACHE: true 02/05/24 10:23:49.235 [58.11.82.7:53627 1 Kop] [Ctrl] X Cache_control -> private ( logged in user ) 02/05/24 10:23:49.235 [58.11.82.7:53627 1 Kop] [Router] get_role: administrator 02/05/24 10:23:49.235 [58.11.82.7:53627 1 Kop] [Media] init 02/05/24 10:23:49.243 [58.11.82.7:53627 1 Kop] [LQIP] init 02/05/24 10:23:49.243 [58.11.82.7:53627 1 Kop] [CDN] init 02/05/24 10:23:49.243 [58.11.82.7:53627 1 Kop] ? Init 02/05/24 10:23:49.244 [58.11.82.7:53627 1 Kop] [Router] LSCWP_CTRL bypassed empty 02/05/24 10:23:49.244 [58.11.82.7:53627 1 Kop] [GUI] init 02/05/24 10:23:49.456 [58.11.82.7:53627 1 Kop] ?? [Tag] Add — HTTP.200 02/05/24 10:23:49.472 [58.11.82.7:53627 1 Kop] [Ctrl] X Cache_control init on 02/05/24 10:23:49.491 [58.11.82.7:53627 1 Kop] ?? [Tag] Add — HTTP.200 02/05/24 10:23:49.545 [58.11.82.7:53627 1 Kop] ?? [Tag] Add — HTTP.200 02/05/24 10:23:49.605 [58.11.82.7:53627 1 Kop] [Tool] Heartbeat interval set to 60 02/05/24 10:23:50.979 [58.11.82.7:53627 1 Kop] ?? added * => LiteSpeed\Root::debug(?? added *,8)@51 => LiteSpeed\Purge->_add(ARRAY)@501 => LiteSpeed\Purge::add(ARRAY)@473 => LiteSpeed\Purge->purge_post(8049)@885 => LiteSpeed\Purge->purge_publish(publish,publish)@89 => /home/awolonl1/sentlive.com/wp-includes/class-wp-hook.php => WP_Hook->apply_filters(ARRAY)@324 => WP_Hook->do_action(ARRAY)@348 => /home/awolonl1/sentlive.com/wp-includes/post.php@517 02/05/24 10:23:50.979 [58.11.82.7:53627 1 Kop] ?? X-LiteSpeed-Purge: public,976
    02/05/24 10:23:50.979 [58.11.82.7:53627 1 Kop] ?? added REST => LiteSpeed\Root::debug(?? added _REST,8)@51 => LiteSpeed\Purge->_add(ARRAY)@501 => LiteSpeed\Purge::add(REST)@473 => LiteSpeed\Purge->purge_post(8049)@887 => LiteSpeed\Purge->purge_publish(publish,publish)@89 => /home/awolonl1/sentlive.com/wp-includes/class-wp-hook.php => WP_Hook->apply_filters(ARRAY)@324 => WP_Hook->do_action(ARRAY)@348 => /home/awolonl1/sentlive.com/wp-includes/post.php@517 02/05/24 10:23:50.979 [58.11.82.7:53627 1 Kop] ?? X-LiteSpeed-Purge: public,976
    02/05/24 10:23:51.403 [58.11.82.7:53627 1 Kop] [Core] Footer hook called
    02/05/24 10:23:51.416 [58.11.82.7:53627 1 Kop] [Core] Footer check passed
    02/05/24 10:23:51.416 [58.11.82.7:53627 1 Kop] [Vary] role in vary_group [group] 99
    02/05/24 10:23:51.416 [58.11.82.7:53627 1 Kop] [Vary] show_admin_bar_front: true
    02/05/24 10:23:51.417 [58.11.82.7:53627 1 Kop] [Vary] admin bar : true
    02/05/24 10:23:51.418 [58.11.82.7:53627 1 Kop] [Vary] set_cookie —> admin_bar:1;logged-in:1;role:99
    02/05/24 10:23:51.418 [58.11.82.7:53627 1 Kop] [Vary] no custimzed vary
    02/05/24 10:23:51.419 [58.11.82.7:53627 1 Kop] ?? X-LiteSpeed-Cache-Control: private,max-age=1800
    02/05/24 10:23:51.419 [58.11.82.7:53627 1 Kop] ?? X-LiteSpeed-Purge: public,976_
    02/05/24 10:23:51.419 [58.11.82.7:53627 1 Kop] [Vary] uid: 1
    02/05/24 10:23:51.419 [58.11.82.7:53627 1 Kop] [Vary] role in vary_group [group] 99
    02/05/24 10:23:51.419 [58.11.82.7:53627 1 Kop] [Vary] show_admin_bar_front: true
    02/05/24 10:23:51.419 [58.11.82.7:53627 1 Kop] [Vary] admin bar : true
    02/05/24 10:23:51.419 [58.11.82.7:53627 1 Kop] ?? X-LiteSpeed-Tag: 976_tag_priv,public:976_HTTP.200,public:976_page,public:976_URL./activity/,public:976_Po.15,public:976_PGS,public:976_
    02/05/24 10:23:51.419 [58.11.82.7:53627 1 Kop] [Core] Footer check passed
    02/05/24 10:23:51.419 [58.11.82.7:53627 1 Kop] [Core] run hook litespeed_buffer_finalize
    02/05/24 10:23:51.419 [58.11.82.7:53627 1 Kop] ?? finalize
    02/05/24 10:23:51.420 [58.11.82.7:53627 1 Kop] ?? lazyload disabled
    02/05/24 10:23:51.420 [58.11.82.7:53627 1 Kop] GUI bypassed by no counter
    02/05/24 10:23:51.420 [58.11.82.7:53627 1 Kop] Response headers — array (
    0 => ‘X-Powered-By: PHP/8.1.27’,
    1 => ‘Set-Cookie: wprus_user_pending_async_actions=Y_e7v9HflAk84O7MfuxsnYl4ZPLqaWjcNUKgCiIPt_f4wE8Im7OS3D1TYaBV7wgsljAQ8oBdgJz__IqPKyRSLA%3D%3D; path=/; secure; SameSite=None’,
    2 => ‘Set-Cookie: wprus_user_pending_async_actions=YrvTLG9rZDbAMMnZlsXcFsD6XMMcPRUTxTBfPGS4V3FRA_FbPipwKi5yUSKZ_%2BK39A%2BYVlmGdPoa5EZumQlAcg%3D%3D; path=/; secure; SameSite=None’,
    3 => ‘Expires: Wed, 11 Jan 1984 05:00:00 GMT’,
    4 => ‘Cache-Control: no-cache, must-revalidate, max-age=0, no-store, private’,
    5 => ‘Content-Type: text/html; charset=UTF-8’,
    6 => ‘Link: https://sentlive.com/wp-json/; rel=”https://api.w.org/”‘,
    7 => ‘Link: https://sentlive.com/wp-json/wp/v2/buddypress/15; rel=”alternate”; type=”application/json”‘,
    8 => ‘Link: https://sentlive.com/?p=15; rel=shortlink’,
    9 => ‘Set-Cookie: lscache_vary=admin_bar%3A1%3Blogged-in%3A1%3Brole%3A99; expires=Wed, 07-Feb-2024 03:23:51 GMT; Max-Age=172800; path=/; secure; HttpOnly’, 10 => ‘X-LiteSpeed-Cache-Control: private,max-age=1800’, 11 => ‘X-LiteSpeed-Purge: public,976‘,
    12 => ‘X-LiteSpeed-Tag: 976_tag_priv,public:976_HTTP.200,public:976_page,public:976_URL./activity/,public:976_Po.15,public:976_PGS,public:976_’,
    )
    02/05/24 10:23:51.420 [58.11.82.7:53627 1 Kop] End response

    Plugin Support qtwrk

    (@qtwrk)

    refresh it again you will see it shows cache hit

    Thread Starter AWOL

    (@awol)

    Hi @qtwrk,

    I’m afraid not, every page, however often I reload always shows miss. I have tried again today and it still shows miss, even after doing the latest update. Please assist me in fixing this.

    Plugin Support qtwrk

    (@qtwrk)

    it just works on me

    please try grab the log again if it still not working for you.

    Thread Starter AWOL

    (@awol)

    Hi @qtwrk,

    It seems as though for logged out users cache works, but for logged in users it doesn’t – I tried in a Firefox private window (because I was logged in in another FF window) as a logged out user and after reload I get cache: hit; I then logged in as another user and after reload get cache: miss, and of course on my logged in admin user I get cache: miss on every page too. I have the Cache Logged In Users turned on, but reading some other posts in the forum it seems that there is maybe an issue with Firefox (or maybe just the MacOS version I use, which is the latest)? I haven’t tried with any other browser.

    Plugin Support qtwrk

    (@qtwrk)

    but still , try the log first.

    Thread Starter AWOL

    (@awol)

    Hi @qtwrk,

    Still getting cache: miss on many pages when logged in – a couple are showing hit), but the home page and activity page are always miss. Here is the latest log entry for the activity page (third attempt loading it today – I am in Thailand hence the time shown), but I can’t see either any reference to the miss or any clue to what is going on – perhaps you can?

    02/08/24 09:16:45.980 [58.11.82.7:56474 1 Bjj] ?? ------GET HTTP/1.1 (HTTPS) /activity/
    02/08/24 09:16:45.980 [58.11.82.7:56474 1 Bjj] Query String:
    02/08/24 09:16:45.980 [58.11.82.7:56474 1 Bjj] HTTP_REFERER: https://sentlive.com/
    02/08/24 09:16:45.980 [58.11.82.7:56474 1 Bjj] User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:122.0) Gecko/20100101 Firefox/122.0
    02/08/24 09:16:45.980 [58.11.82.7:56474 1 Bjj] Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,/;q=0.8
    02/08/24 09:16:45.980 [58.11.82.7:56474 1 Bjj] Accept Encoding: gzip, deflate, br
    02/08/24 09:16:45.980 [58.11.82.7:56474 1 Bjj] Cookie lscache_vary: admin_bar:1;logged-in:1;role:99 02/08/24 09:16:45.980 [58.11.82.7:56474 1 Bjj] X-LSCACHE: true 02/08/24 09:16:46.821 [58.11.82.7:56474 1 Bjj] [Ctrl] X Cache_control -> private ( logged in user ) 02/08/24 09:16:46.821 [58.11.82.7:56474 1 Bjj] [Router] get_role: administrator 02/08/24 09:16:46.834 [58.11.82.7:56474 1 Bjj] [Media] init 02/08/24 09:16:46.836 [58.11.82.7:56474 1 Bjj] [LQIP] init 02/08/24 09:16:46.837 [58.11.82.7:56474 1 Bjj] [CDN] init 02/08/24 09:16:46.838 [58.11.82.7:56474 1 Bjj] ? Init 02/08/24 09:16:46.838 [58.11.82.7:56474 1 Bjj] [Router] LSCWP_CTRL bypassed empty 02/08/24 09:16:46.839 [58.11.82.7:56474 1 Bjj] [GUI] init 02/08/24 09:16:47.092 [58.11.82.7:56474 1 Bjj] ?? [Tag] Add --- HTTP.200 02/08/24 09:16:47.094 [58.11.82.7:56474 1 Bjj] [Ctrl] X Cache_control init on 02/08/24 09:16:47.116 [58.11.82.7:56474 1 Bjj] ?? [Tag] Add --- HTTP.200 02/08/24 09:16:47.160 [58.11.82.7:56474 1 Bjj] ?? [Tag] Add --- HTTP.200 02/08/24 09:16:47.197 [58.11.82.7:56474 1 Bjj] [Tool] Heartbeat interval set to 60 02/08/24 09:16:48.477 [58.11.82.7:56474 1 Bjj] ?? added * => LiteSpeed\Root::debug(?? added *,8)@51 => LiteSpeed\Purge->_add(ARRAY)@501 => LiteSpeed\Purge::add(ARRAY)@473 => LiteSpeed\Purge->purge_post(8049)@885 => LiteSpeed\Purge->purge_publish(publish,publish)@89 => /home/awolonl1/sentlive.com/wp-includes/class-wp-hook.php => WP_Hook->apply_filters(ARRAY)@324 => WP_Hook->do_action(ARRAY)@348 => /home/awolonl1/sentlive.com/wp-includes/post.php@517 02/08/24 09:16:48.477 [58.11.82.7:56474 1 Bjj] ?? X-LiteSpeed-Purge: public,976
    02/08/24 09:16:48.477 [58.11.82.7:56474 1 Bjj] ?? added REST => LiteSpeed\Root::debug(?? added _REST,8)@51 => LiteSpeed\Purge->_add(ARRAY)@501 => LiteSpeed\Purge::add(REST)@473 => LiteSpeed\Purge->purge_post(8049)@887 => LiteSpeed\Purge->purge_publish(publish,publish)@89 => /home/awolonl1/sentlive.com/wp-includes/class-wp-hook.php => WP_Hook->apply_filters(ARRAY)@324 => WP_Hook->do_action(ARRAY)@348 => /home/awolonl1/sentlive.com/wp-includes/post.php@517 02/08/24 09:16:48.477 [58.11.82.7:56474 1 Bjj] ?? X-LiteSpeed-Purge: public,976
    02/08/24 09:16:48.835 [58.11.82.7:56474 1 Bjj] [Core] Footer hook called
    02/08/24 09:16:48.847 [58.11.82.7:56474 1 Bjj] [Core] Footer check passed
    02/08/24 09:16:48.848 [58.11.82.7:56474 1 Bjj] [Vary] role in vary_group [group] 99
    02/08/24 09:16:48.848 [58.11.82.7:56474 1 Bjj] [Vary] show_admin_bar_front: true
    02/08/24 09:16:48.848 [58.11.82.7:56474 1 Bjj] [Vary] admin bar : true
    02/08/24 09:16:48.848 [58.11.82.7:56474 1 Bjj] [Vary] no custimzed vary
    02/08/24 09:16:48.848 [58.11.82.7:56474 1 Bjj] ?? X-LiteSpeed-Cache-Control: private,max-age=1800
    02/08/24 09:16:48.848 [58.11.82.7:56474 1 Bjj] ?? X-LiteSpeed-Purge: public,976_
    02/08/24 09:16:48.849 [58.11.82.7:56474 1 Bjj] [Vary] uid: 1
    02/08/24 09:16:48.849 [58.11.82.7:56474 1 Bjj] [Vary] role in vary_group [group] 99
    02/08/24 09:16:48.849 [58.11.82.7:56474 1 Bjj] [Vary] show_admin_bar_front: true
    02/08/24 09:16:48.849 [58.11.82.7:56474 1 Bjj] [Vary] admin bar : true
    02/08/24 09:16:48.849 [58.11.82.7:56474 1 Bjj] ?? X-LiteSpeed-Tag: 976_tag_priv,public:976_HTTP.200,public:976_page,public:976_URL./activity/,public:976_Po.15,public:976_PGS,public:976_
    02/08/24 09:16:48.849 [58.11.82.7:56474 1 Bjj] [Core] Footer check passed
    02/08/24 09:16:48.849 [58.11.82.7:56474 1 Bjj] [Core] run hook litespeed_buffer_finalize
    02/08/24 09:16:48.849 [58.11.82.7:56474 1 Bjj] ?? finalize
    02/08/24 09:16:48.849 [58.11.82.7:56474 1 Bjj] ?? lazyload disabled
    02/08/24 09:16:48.849 [58.11.82.7:56474 1 Bjj] GUI bypassed by no counter
    02/08/24 09:16:48.850 [58.11.82.7:56474 1 Bjj] Response headers --- array (
    0 => 'X-Powered-By: PHP/8.1.27',
    1 => 'Set-Cookie: wprus_user_pending_async_actions=eobRAXzsTVcJc6yH8rG8Daczv5HDGqfLQBWYPbfCYuJ%2BSoEgnRWNgZYKpp9w6FOMsHX6I7XYNnJU%2BhXopMNe_w%3D%3D; path=/; secure; SameSite=None',
    2 => 'Set-Cookie: wprus_user_pending_async_actions=2TnFsF_cHJQ1yxTob%2B_oJX4wGt1XIyvzKsNKi_j2OufguYcwJKtL9aXANFdl4DhD_3G8K_yLy3NM06FbR_DF6A%3D%3D; path=/; secure; SameSite=None',
    3 => 'Expires: Wed, 11 Jan 1984 05:00:00 GMT',
    4 => 'Cache-Control: no-cache, must-revalidate, max-age=0, no-store, private',
    5 => 'Content-Type: text/html; charset=UTF-8',
    6 => 'Link: https://sentlive.com/wp-json/; rel="https://api.w.org/"',
    7 => 'Link: https://sentlive.com/wp-json/wp/v2/buddypress/15; rel="alternate"; type="application/json"',
    8 => 'Link: https://sentlive.com/?p=15; rel=shortlink',
    9 => 'X-LiteSpeed-Cache-Control: private,max-age=1800',
    10 => 'X-LiteSpeed-Purge: public,976_',
    11 => 'X-LiteSpeed-Tag: 976_tag_priv,public:976_HTTP.200,public:976_page,public:976_URL./activity/,public:976_Po.15,public:976_PGS,public:976_',
    )
    02/08/24 09:16:48.850 [58.11.82.7:56474 1 Bjj] End response
    --------------------------------------------------Duration: 2,872.03 ms------------------------------
    Plugin Support qtwrk

    (@qtwrk)

    ?? added REST => LiteSpeed\Root::debug(?? added _REST,8)@51 => LiteSpeed\Purge->_add(ARRAY)@501 => LiteSpeed\Purge::add(REST)@473 => LiteSpeed\Purge->purge_post(8049)@887 => LiteSpeed\Purge->purge_publish(publish,publish)@89 => /home/awolonl1/sentlive.com/wp-includes/class-wp-hook.php => WP_Hook->apply_filters(ARRAY)@324 => WP_Hook->do_action(ARRAY)@348 => /home/awolonl1/sentlive.com/wp-includes/post.php@517 02/08/24 09:16:48.477 [58.11.82.7:56474 1 Bjj] ?? X-LiteSpeed-Purge: public,976

    there is something triggered transition_post_status that triggers the purge

    Thread Starter AWOL

    (@awol)

    Hi @qtwrk,

    OK, so how do I deal with this? How can I find what is triggering transition_post_status? My site is not currently having many posts or post edits and I don’t want a purge every time there is one anyway, although obviously I do want updated content to appear to users. Is there a LSCache setting I can adjust to prevent this happening? Or a filter I can add to my theme functions? I tried unchecking all the boxes in the Cache > Purge > Auto Purge Rules For Publish/Update settings but still getting cache:miss. Or will it take time for this to change?

    Plugin Support qtwrk

    (@qtwrk)

    no , even you uncheck all in “auto purge rule” , this post status change will still happens

    I can only think of an old-fashion way to find what triggers the transition by disable all plugins and re-enable them one by one

    Thread Starter AWOL

    (@awol)

    Hi @qtwrk,

    I am a little confused now; I just installed a plugin called WP Hooks Finder and transition_post_status does not appear on the pages I have checked so far. Even more confusing is that the page that was previously cache: miss in the log above is now a hit, but the home page (when logged in) is always a miss. Are you 100% certain about the transition_post_status causing a purge, because it seems very odd to me that (a) this would be how LSCache works, and (b) that there is no setting or code that can be added to prevent that behaviour. Can you double check please?

    Plugin Support qtwrk

    (@qtwrk)

    it doesn’t necessarily have to be transition_post_status with exact match , there are number of ways will change/trigger the post status change

    but once post status is changed by whatever method available , it will also triggers trasition_post_status which is we used to detect the post change

    Thread Starter AWOL

    (@awol)

    Further to the above, I think I have identified the plugin that might be causing this, but I am not certain. It is the Better Messages plugin – if I deactivate it the front page when logged in shows hit, and when I activate it again, after a couple of reloads (because plugin deactivate/activate also purges the cache) it shows miss again every time. I am going to see if there is any way to prevent the plugin loading on the front page or some other way to stop it affecting the cache. In the meantime I would appreciate any helpful suggestions from your side and an answer to why this is the behaviour as asked above.

    Plugin Support qtwrk

    (@qtwrk)

    hm ? no really from my side but judge by the name of this plugin , maybe it sends/receives some kind of message or notification that could lead to a post status change that eventually triggers the purge ?

Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘No cache’ is closed to new replies.