I use Cloudflare heavily on all my wordpress sites. On pokerdiy I use the MyListings Theme which uses an AJAX login and Woo Commerce. The user never sees the default wordpress admin dashboards and control panels by design. However, they should see their logged in pages and at the top right of every page it will show their name and a different menu for logged in users.
I now have caching issues with logged in users - My theory is that Cloudflare cannot determine when a user is logged in or not, so it is displaying the cached anonymous logged out view.
When I disable cloudflare the site works fine.
Reading on Cloudflare it sounds like “Bypass Cache by Cookie” is the only option to tell whether or not a user is logged in. However, this is a $200 Business license on Cloudflare which is out of the question for a hobby site.
This is a long read, but halfway down someone suggests that the headers WP returns should be respected by CloudFlare: https://support.cloudflare.com/hc/en-us/articles/236166048
Another person suggested using Cloudflare workers to replicate the “Bypass cache by cookie” functionality that costs $200 per month.
How can I use Cloudflare caching on a Wordpress site that uses front-end user logins?