WordPress Comments Cached As Me Logged In Even On Incognito Windows
I’m running into a caching problem with my native WordPress comments. If I clear Cloudflare cache and visit the a page myself it then shows me as logged in even on incognito browsers and other computers.
If I purge the Cloudflare cache and first visit the page on incognito then when visiting the page when logged in, it shows the comment section as me not logged in.
I’ve looked all over but can’t find others with the same issue. How do I keep the page from caching myself as logged in on my posts?
I’ve tried this and it partially works:
add_filter( 'comment_form_logged_in', '__return_empty_string' );
But the “name” and “email” fields don’t show up, just the comment box.