July 19, 2022 at 10:01 am #55359ACEGuest
Now, I have to start by saying that last week I started using the cloudflare extension you guys offer for the CDN. That being said, I now have to clear caches (both site and cloudflare at once) in order to solve this issue I’ve been having which is:
members cannot login anymore. The page just gets stuck on logging in. It says it’s logging in but in reality the screen just ‘freezes’ and nothing happens at all.
When I clear cache of course, everything works again. But for about 24h and then the problems start again.
in the “Never cache the following pages” box I have included the login url’s and these used to work before. So I’m not sure what is setting this off right now. Any idea? As Cloudflare is telling me to go to you for these issues.
Thanks!July 19, 2022 at 10:07 am #55364
Thank you for reaching out and I am happy to assist you with this.
I have to start by saying that last week I started using the Cloudflare extension you guys offer for the CDN. That being said, I now have to clear caches (both site and Cloudflare at once) in order to solve this issue
Just to confirm, did you start to experience the problem once you connected to Cloudflare? The question is have you been using W3 Total Cache before you connected with Cloudflare or vice versa?
I can see that the cache-control header is set to 14400s and the default in W3TC is 3600s, So you may want to check the Cloudflare settings and set the browser Cache rules to respect the origin
Let me know the answer and again make sure that the BC TTL in Cloudflare settings respects the origin headers.
Thanks!July 19, 2022 at 12:27 pm #55366ACEGuest
Hi, thank you for the quick reply. I got W3 first and added Cloudflare extension later on.
I’ve had this problem before with the W3 plugin though, but after removing the page exceptions , doing a purge, adding the page exceptions once again (everything behind login basically), and clearing cache/purge again.. that solved the problem. Now it does not.
So I’m assuming this does have something to do with Cloudflare but I’m not sure what. I’ve adjusted the settings of the browser cache rules. While I wait to see if this happens again, I’d love to hear if there’s anything else I can do.
Thank you.July 19, 2022 at 12:29 pm #55371
Thank you for your feedback.
Let me know if the problem persists with the default W3TC Browser Cache settings.
Also, make sure to check and configure Cloudflare Page rules and exclude the page from the cf cache.
Thanks!July 20, 2022 at 8:50 am #55385ACEGuest
So I’ve set the cloudflare browser cache rule settings to respect the origin (w3) settings for this yet the problem is happening again unfortunately.
Right now the page cache rule exceptions (what pages not to cache) are in the W3 settings for “never cache the following pages”. Are you saying I should remove them from there and instead put them into the Cloudflare page rules instead? Would this solve the issue?
Thanks.July 25, 2022 at 5:47 am #55492ACEnetGuest
So to add onto this, I’ve now tried putting those page rules in CF and take them out of W3, but unfortunately the problem stays the same. I still have to cache every so often because logging in becomes impossible. I’ll add that on the site when people want to login, they get a login pop up. So I’m assuming that because it doesn’t have the admin /login url yet (because it’s a pop-up on a non-admin url, it’s still being cached? Could this have anything to do with it? And if so, how could I resolve it? Site is asexuals.netJuly 26, 2022 at 1:24 pm #55589ACEGuest
A user has sent me this information:
“The request is to wp-login.php. The response status is 200 with a response body of ‘-1’.
The payload is:
If that’s helpful.July 26, 2022 at 1:33 pm #55604
Well, this is very strange.
The Cloudflare support refers you to us, even tho the problem started once you started using Cloudflare. And as we confirmed, you have not been experiencing the problem only with W3TC, and this was solved by excluding the pages from the cache.
I am not quite sure why this is happening when you are using Cloudflare. The best thing in my opinion would be to move the login to a /login/ page or /account/ page and not use the popup since it the problems you mentioned may appear.
I hope this helps!
- The topic ‘needs cache cleared every 24h because of member login issues’ is closed to new replies.