Session Expired message showing for non-logged-in users (with FlyingPress cache)
Hello everyone,
Iβm facing an issue with FluentCommunity on my WordPress site. On the homepage, non-logged-in visitors are seeing this message:
Session Expired
Your session has expired due to inactivity. Please refresh the page to continue.
This message should only appear for logged-in users when their session actually expires.
My setup:
- FluentCommunity (latest version)
- FlyingPress caching plugin enabled
- CDN (FlyingCDN/Cloudflare) in front of the site
Problem:
It seems the βSession Expiredβ banner is being cached and then shown to logged-out users as well. This creates confusion because normal visitors should never see this message.
What I tried so far:
- Clearing cache (FlyingPress + CDN) β problem comes back.
- Checked cookies β non-logged-in users donβt have
wordpress_logged_in_but still see the cached banner. - Looked for a way to bypass cache based on cookies, but that might not be optimal.
Question:
π How can I ensure the βSession Expiredβ message only shows to logged-in users, and not cached for public visitors?
Any hooks, Bypass Cache for Cookies, filters, or recommended FlyingPress/FluentCommunity settings would be greatly appreciated.
Thanks in advance!
Exclude caching for your portal URI as well as /wp-json/fluent-community/*
You don't need caching for community endpoints.
Shahjahan JewelΒ Thanks