• I’ve posted this all over and I just can’t get any help.

    I think it’s better to explain the problem in steps:

    1. Go to my website’s “Home” page
    2. Go to the Login Page and log in or register
    3. After I log in or register I’m redirected back to the “Home” page
    4. The cart items are updated, but the menu is not (It still says Login instead of Logout).
    5. When I refresh the page the change takes effect (The menu item says “Logout”).

    I’m using the (User Menus – Nav Menu Visibility – https://ww.wp.xz.cn/support/plugin/user-menus/) to handle the changing of the menu depending on if the user is logged in or not.

    My navigation menu was created with Elementor and the login was done with (https://ww.wp.xz.cn/support/plugin/easy-login-woocommerce/).

    My host is using Litespeed and I’ve tried disabling cache completely (in CPanel) with no luck.

    The only thing that has helped with this is placing the following in my .htaccess

    
    # Begin LSCACHE
    Header set Cache-Control “no-cache, no-store, must-revalidate”
    Header set Pragma “no-cache” Header set Expires 0
    # End LSCACHE
    

    But apparently, I should not do this, according to the answer in the question I asked here: https://ww.wp.xz.cn/support/topic/litespeed-causing-issue-with-menu/

    Any help would be greatly appreciated.

    • This topic was modified 3 years, 5 months ago by hagenb.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Litespeed cache and menu refreshing’ is closed to new replies.