• Resolved danniee001

    (@danniee001)


    I have two sites on my Litespeed server and both have your plugin installed. For the one site, cache logged in users works fine, but not for the other. They use the same theme and many of the same plugins. Cache works for both, just that cache for logged in users does not work for one of them. It appears it worked for a very short time when I tested it in incognito mode and logged in, but not anymore.

    Any suggestions? I deactivated a bunch of plugins and nothing worked. I recreated the htaccess file but it didnt work either.

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

    (@qtwrk)

    please explain a bit how exactly it not working ?

    like only cache for very short time and then become cache: miss again ?

    you can go to toolbox -> debug setting -> debug log to ON , log level to Adavnce , then repeat your test , after that, check /wp-content/debug.purge.log, see if there is any purge calls to private cache.

    Thread Starter danniee001

    (@danniee001)

    Hi,

    Thank you for your response. I am not quite sure exactly what to look for? If it makes any difference, I use Cloudflare but have tried pausing it which makes no difference.

    This is very odd because logged in user cache works great on my other site which is on the same server and uses the same theme. I have tried to carefully replicate the LSCache settings but no luck ??

    As logged in, I get: no-cache, must-revalidate max-age=0, DYNAMIC

    • This reply was modified 1 year, 9 months ago by danniee001.
    Thread Starter danniee001

    (@danniee001)

    I tried disabling all plugins one by one and that didn’t fix the issue either. I also reset the LSCache settings and generated a new htaccess file. Nothing seems to work. It’s so strange.

    • This reply was modified 1 year, 9 months ago by danniee001.
    • This reply was modified 1 year, 9 months ago by danniee001.
    Thread Starter danniee001

    (@danniee001)

    Seems like I was wrong. None of my sites that use LSCache cache logged in users. I don’t know what I am doing wrong. Even my hosting support had a look and couldn’t say.

    Thread Starter danniee001

    (@danniee001)

    There’s a portion of the log when I visit a post as a logged in user…

    ?? ------GET HTTP/1.1 (HTTPS) /lucky-review/
    Query String:
    HTTP_REFERER: https:// www. b.com/s/
    User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/114.0
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,/;q=0.8
    Accept Encoding: gzip
    Cookie lscache_vary: admin_bar:1;logged-in:1 X-LSCACHE: true LSCACHE_VARY_VALUE: SE [Ctrl] X Cache_control -> private ( logged in user ) [Router] get_role: subscriber [Media] init [LQIP] init [CDN] init ? Task init [Router] LSCWP_CTRL bypassed empty [GUI] init [Tag] Add --- HTTP.200 [Ctrl] X Cache_control init on [Vary] No pending comment [Core] Footer hook called [Core] Footer check passed [Vary] show_admin_bar_front: true [Vary] admin bar : true [Vary] no custimzed vary ?? X-LiteSpeed-Cache-Control: private,max-age=1800 ?? X-LiteSpeed-Tag: dbe_tag_priv,public:dbe_HTTP.200,public:dbe_post,public:dbe_URL./lucky/,public:dbe_Po.100401,public:dbe
    [Core] Footer check passed
    ?? finalize
    ?? lazyload disabled
    GUI bypassed by no counter
    Response headers --- array (
    0 => 'X-Powered-By: PHP/8.2.5',
    1 => 'Expires: Wed, 11 Jan 1984 05:00:00 GMT',
    2 => 'Cache-Control: no-cache, must-revalidate, max-age=0',
    3 => 'Content-Type: text/html; charset=UTF-8',
    4 => 'Link: www. b.com/wp-json/; rel="https://api.w.org/"',
    5 => 'Link:  www. b.com/wp-json/wp/v2/posts/100401; rel="alternate"; type="application/json"',
    6 => 'Link: www. b.com/?p=102401; rel=shortlink',
    7 => 'Link: www. b.com/wp-content/plugins/nextend-smart-slider3-pro/Public/SmartSlider3/Application/Frontend/Assets/dist/smartslider.min.css?ver=83052299; rel=preload; as=style',
    8 => 'X-LiteSpeed-Cache-Control: private,max-age=1800',
    9 => 'X-LiteSpeed-Tag: dbe_tag_priv,public:dbe_HTTP.200,public:dbe_post,public:dbe_URL./lucky-review/,public:dbe_Po.102401,public:dbe_',
    )
    End response

    • This reply was modified 1 year, 9 months ago by danniee001.
    • This reply was modified 1 year, 9 months ago by danniee001.
    Thread Starter danniee001

    (@danniee001)

    Any suggestions at all? ??

    Thread Starter danniee001

    (@danniee001)

    Is it possible to get any support at all for this plugin?

    Plugin Support qtwrk

    (@qtwrk)

    yeah sorry I was off the grid yesterday due to health issue

    you still didn’t explain what exactly was not working for login user ?

    the log you provided shows the login user will be cached for 1800 seconds , as expected , and

    no-cache, must-revalidate max-age=0 this is normal

    and please go to toolbox -> report -> click “send to LiteSpeed” , after that it will generate a 8 letter string, please share me that string so I can locate your report.

    Thread Starter danniee001

    (@danniee001)

    I’m sorry, now I feel bad. Hope you are ok.

    The problem I am experiencing is that when I am logged in, pages load as if not cached (slow) and when logged out, they load fast. So there is a big difference. Also, when I check network tab in console in my browser, it clearly says “cached” when logged out and doesn’t when logged in.

    In contrast, when I use WP Rocket, pages load super fast when logged in and network tab says cached.

    Report number: BHWIEREP

    Plugin Support qtwrk

    (@qtwrk)

    thanks.

    the login user cache is shorter , like only last for 1800 seconds , so if your visits were apart more than that time, it will be miss

    and where is the reg/login link on your site ? sorry I couldn’t find it

    and please do me a screenshot when you say

    when I check network tab in console in my browser,it clearly says “cached”

    I wonder if you are referring to the browser cache , instead of page cache.

    • This reply was modified 1 year, 9 months ago by qtwrk.
    Thread Starter danniee001

    (@danniee001)

    I have disabled register on this site, sorry.

    This is what I mean with the browser: https://imgur.com/rhIR2LL

    Sorry, I am not 100% sure what I am talking about, but my point is I noticed a significant difference in load speed between logged in and logged out. When I use WP Rocket’s cache logged in users, it’s as quick as when logged out.

    Thread Starter danniee001

    (@danniee001)

    Maybe this plugin handles cache logged in users differently than WP Rocket, but then again, I don’t see the point if it doesn’t improve the load speed for the user?

    Thread Starter danniee001

    (@danniee001)

    And when I use WP Rocket, I get “cached” in the network tab both when I am logged in and logged out, but not with LSCache plugin.

    Plugin Support qtwrk

    (@qtwrk)

    yeah , that’s the browser cache, that means the page was loaded from browser cache directly , instead of fetching from server

    was it like , you visit the page as guest user , then login , then it directly give you cached as your screenshot ?

    do you see login user specific content show up after that ?

    Thread Starter danniee001

    (@danniee001)

    No, if I activate cache for logged in users, all content is served to the vistor as it should. It’s just that when logged in, I don’t see “cached” in the network tab and it loads much slower, as if it’s not actually cached for the logged in user.

    In contrast, when I use the cache logged in users feature in WP Rocket, I do see “cached” in the network tab when I am logged in, and pages load ultra fast.

    Maybe these are two totally different features with the same name?

Viewing 15 replies - 1 through 15 (of 32 total)
  • The topic ‘Logged in cache not working’ is closed to new replies.