Hi, when enabling caching on my website by using a page rule, I start to have problems with a wordpress function I use (is_user_logged_in()).
I use this function to hide or show elements based on the logged-in status of my visitor. When a user logs in, these elements don’t detect the logged in status of the particular user (they are indeed logged in though). As if the pages don’t update after logging in. They don’t get to see the logged-in-only-elements.
I have tried disabling the caching on one page through the Page Rules and that seems to fix the problem on that one page.
How can I still enable caching on my website, but have this problem fixed?