• We just setup caching on this site and made huge speed improvements, but are having issues with users not being able to reset their passwords.

    I believe we have the /resetpass/ page and cookie starting with wp-resetpass both blocked from being cached at all levels: varnish, wp rocket plugin, and cloudflare.

    We’re getting intermittent errors from users that are unable to reset their password and get the error: “Your password reset link appears to be invalid. Please request a new link below.”

    and wordpress 302’s them to https://bardotbrush.com/lost-password/?error=invalidkey

    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Jeff Farthing

    (@jfarthing84)

    Can you use the browsers network inspector when attempting to reset and check for the cache headers?

    Thread Starter dylanmhowell

    (@dylanmhowell)

    Plugin Author Jeff Farthing

    (@jfarthing84)

    Did it work that time?

    Thread Starter dylanmhowell

    (@dylanmhowell)

    Unfortunately, no. It redirects to https://bardotbrush.com/lost-password/?error=invalidkey

    Plugin Author Jeff Farthing

    (@jfarthing84)

    And this was accessed right after the lost-password step, so as to obtain a new key?

    Thread Starter dylanmhowell

    (@dylanmhowell)

    Correct.

    Just tried entire process in a different browser, same result.

    Plugin Author Jeff Farthing

    (@jfarthing84)

    Have you tested with other plugins disabled?

    Were you able to find out what was causing it? We’re having this exact same issue and hours of debugging has not helped. The strange thing is we’re not seeing same issue on development server even though they have exact same code.

    We use cloudflare and wp-rocket as well. I’ve tested with both disabled and we’re still getting the issue.

    Thread Starter dylanmhowell

    (@dylanmhowell)

    We weren’t able to find a solution and just disabled the plugin and manually styled our login page template.

    I actually just figured out the problem. If you add define(‘COOKIEHASH’, ”); in wp-config.php, it should start working.

    For some reason COOKIEHASH for us was returning different values randomly. COOKIEHASH itself is just md5(get_site_option(‘siteurl’)), which means the function get_site_option(‘siteurl’)) returns different results randomly.

    I’m not sure if you have this same issue, but it’s worth checking out. Inconsistent return value from get_site_option(‘siteurl’) may cause other subtle hard to find bugs.

    Still haven’t been able to figure out why get_site_option returns inconsistently.

    • This reply was modified 6 years, 1 month ago by dpacmittal.
Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Cache issue (varnish, wp-rocket, cloudflare)’ is closed to new replies.