If you are speeding up your WooCommerce website, and getting it hosted nice and fast by utilising the optimized managed WordPress hosting available at Cloudways, you may sometimes (not always) run into an issue where the password reset form does not work quite right.
What the error might look like
Specifically, you – and your users, visitors and customers – will see an error message which reads “This key is invalid or has already been used. Please reset your password again if needed.”
How to Fix this in Cloudways
To fix this in Cloudways, you will need to set a Varnish exclusion which covers the WooCommerce cookie relating to password resets, and ensures this does not get cached at all, ever.
To do that:
- Login to your Cloudways account;
- Click “Applications”
- Find the relevant WordPress and Woocommerce application and open it
- Then in the left hand menu, click “Application Settings”
- In the page which opens, click the third tab at the top – “Varnish Settings”
- Click “Add new rule”
- Select Type -> Cookie; Method -> Exclude and enter “wp-resetpass-” (without the quotation marks!) into the final box, then click “Save”
That should be it. When you are saving, it should look like this:
When its done and saved, it should look like this:
Did this work for you?
Doing the above works for us, every time, to make the password reset form work on Cloudways. You can leave a comment below if you struggle with this.
Thank you, this fixed my problems!