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

    (@qtwrk)

    Hi,

    Excluding PHPSESSID which is literally disable the cache function.

    Have you enabled cache login user in cache setting ?

    also , if you are making custom theme , please consider to integrate LSCWP API

    in your case , you can either , create a private cache for login user , or make the that is_user_logged_in navbar (or any other user-specified content) with ESI block.

    Best regards,

    Thread Starter WPnerdzz

    (@wpnerdzz)

    Hi, you are right, I checked response header and it was
    X-LiteSpeed-Cache miss
    I removed PHPSESSID to check it and it is showing
    X-LiteSpeed-Cache hit,private
    I logged out and logged in again and it seems to be working. Also tried user with subscriber role and that is working as well. looks like my problem is fixed. And it is probably not a good idea to hardcode Litespeed API on theme for flexibility.

    • This reply was modified 3 years, 10 months ago by WPnerdzz.
    • This reply was modified 3 years, 10 months ago by WPnerdzz.
    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    it is probably not a good idea to hardcode Litespeed API on theme for flexibility.

    you can add a condition check , check if LSCWP exists or not , if not , just skip the LSCWP related code , that’s it , no compromises on flexibility

    Best regards,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to log in/out users correctly?’ is closed to new replies.