Wordpress log in

caching
#1

Greetings,
I have a wordpress site with a homepage for non-logged in users and another when user has logged in.
I would like to cache everything for the non-logged in user homepage using page rule. However, when i do that, and user tries to login the page just refresh back to non-logged in page. If user click log in (again) a pop up saying You are already logged in show up.

What can i do to fix this?

#2

Cache everything can be tricky to configure for some. What you can do, is make a couple of Page Rules.
Rules are processed in order 1~3 so the first rule should disable caching for your Wp Dashboard something like this
image

and for the second rule, something like this.

When testing caching, make sure your web browsers cache is disabled (run in Dev Tools WITH caching disabled) or you’ll be back… :slight_smile:

3 Likes
closed #3

This topic was automatically closed after 30 days. New replies are no longer allowed.