Litespeed causing issue with menu
-
Apologies for the long post, but I have to explain everything to get the issue I’m experiencing across.
Side note – I opened a ticket on litespeedtech but was told to post here. https://www.litespeedtech.com/support/forum/threads/issue-with-cache-on-home-page-for-logged-in-users.21347/
I’m using “User Menus – Nav Menu Visibility” plugin to display “Login” for users that are logged in and “Logout” and “My Account” for users that are not logged in.
The problem is that after the user logs in, they are redirected to the “Home” page, if they look in the menu “Logout” will appear (as it should), but if they go to another page and return to the main page, the menu shows “Login” again. They have to manually refresh the page for it to be fixed.
Disabling cache in the plugin or from CPanel does not fix the issue, but adding the following in my .htaccess does:
# Begin LSCACHE
Header set Cache-Control “no-cache, no-store, must-revalidate”
Header set Pragma “no-cache” Header set Expires 0
# End LSCACHE
I have seen this issue being reported on other Cache plugins as well, like this one has exactly the same issue I have – https://ww.wp.xz.cn/support/topic/cache-page-is-being-displayed-to-logged-in-users/
Any help would be greatly apprieciated.
Thank you.
The topic ‘Litespeed causing issue with menu’ is closed to new replies.
