• 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 - 16 through 30 (of 32 total)
  • Thread Starter danniee001

    (@danniee001)

    In Chrome logged out:
    X-Litespeed-Cache: hit

    In Chrome logged in
    X-Litespeed-Cache: hit,private (but I also see Cache-Control: no-cache, must revalidate in the response header)

    Plugin Support qtwrk

    (@qtwrk)

    that is really against logic , because “cached” means this page has been visited by browser before therefore the browser can cache it , but if it’s newly logged in and it’s the first time accessed as login user, where did that “cached” come from ?

    please do me a screenshot , like this , the “http response header” section is what I need to know on case 1) when you login on LSCWP , 2) when you visit it as guest user on WPRocket , 3) and login on WPRocket.

    please try perform these 3 cases on fully cleaned up browser-history/cache/cookie , or use the incognito window

    and for cases on WP rocket, please also post the last line of HTML source code , you should see something like this

    <!-- Performance optimized by WP rocket. - Debug: cached@1687287464 -->
    Plugin Support qtwrk

    (@qtwrk)

    Cache-Control: no-cache, must revalidate

    this will disable the browser cache , which is expected for wordpress system , I think WP will issue this , and WP rocket get rid of it and make it cache-control: public

    Thread Starter danniee001

    (@danniee001)

    Is your conclusion (from the info you have so far) that cache for logged in users works on my site? It actually seems to work better in Chrome than Firefox.

    When I am logged in using Chrome, when I visit a post it will naturally load slower since it has not yet been cached, but on the second load it’s much faster, thus indicating cache works, right?

    I did not see this behavior in Firefox.

    Thread Starter danniee001

    (@danniee001)

    Hm, yes. It actually seems to work as expected in Chrome but not in Firefox.

    Thread Starter danniee001

    (@danniee001)

    I tried it on Firefox, Chrome, Chrome mobile and Safari, and the only browser where browsing is equally fast for logged in and logged out users is in Chrome for desktop. This is so odd.

    Thread Starter danniee001

    (@danniee001)

    Even more odd, it only seems to behave that way (loading fast for logged in users) on one of my computers and on Chrome (not in incognito mode though). If I try Chrome on my other computer, it loads slow again as if not cached.

    This is extremely confusing to me.

    Plugin Support qtwrk

    (@qtwrk)

    hmmmm, you may need to check the x-litespeed-cache header upon your login , see what’s the value of it

    one thing you could give it a try though , go to Cache -> ESI -> enable ESI , this will improve a bit for login user cache.

    Thread Starter danniee001

    (@danniee001)

    I tried the ESI, but it’s no good. If it makes any difference, I use Redis plugin and Cloudflare. Don’t know how that would affect different browser though.

    Thread Starter danniee001

    (@danniee001)

    Chrome LOGGED IN (incognito mode):
    X-Litespeed-Cache: miss

    Chrome LOGGED OUT (incognito mode):
    X-Litespeed-Cache: hit

    Why is this happening? The only way cache for logged in users seems to work properly is on Chrome desktop in normal mode.

    Thread Starter danniee001

    (@danniee001)

    Chrome LOGGED IN (normal mode):
    X-Litespeed-Cache: hit

    Thread Starter danniee001

    (@danniee001)

    Firefox LOGGED IN: MISS
    Forefox LOGGED OUT: HIT

    Plugin Support qtwrk

    (@qtwrk)

    try refresh on firefox after login

    and please try not post new reply frequently like this , you will soon trigger the forum’s anti-spam mechanism , save all your comments into 1 reply …

    Thread Starter danniee001

    (@danniee001)

    Sorry about that. I am trying refresh several times but the only way I get a HIT when logged in is on Chrome desktop version in normal mode. Every other fails, whether it is Chrome incognito mode, Chrome mobile, Firefox, Safari…

    Absolutely makes no sense at all.

    Exact same behavior on two of my sites.

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

    (@danniee001)

    Let me know if you have any suggestions. This is my only hope to resolve this issue. Switching back to WP Rocket meanwhile. Thank you.

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