Cached pages showing for logged-in users
-
My site is a membership site. I have logged in user name and status displayed on the sidebar and top menu using the membership plugin widget (shortcode).
When a non-logged-in user browses the public pages, the sidebar shows he/she is not logged in. That is fine.
Then the same user logs in, the status on the sidebar of the public pages he/she visited earlier still show not logged in. But if she/he visits other pages that he/she has not visited before, the sidebar shows his/her name and logged-in status. It appears to me that after a user logged in, the previous cached pages are still served. This is confusing for users who logged in but on the sidebar shows he/she is not.
Is there a way or setting(s) that can prevent this to happen?
I have enabled the following in Page Cache :
Don’t cache front page
Don’t cache pages for logged in users
Don’t cache pages for following user roles (all roles)
Cache posts page (default)
- The topic ‘Cached pages showing for logged-in users’ is closed to new replies.