Skip to content

[cache] Fix CAPCHA tokens not being replaced properly

Jookia requested to merge Jookia/website:RFC_cachefixes into master

This fixes CAPCHAs always failing when the page is cached. It slipped through this test:

  1. Go to a non-cached page.
  2. Post a comment to test non-cached commenting.
  3. Post another now that the page is cached.

I assumed that when posting a comment it redirected you back. Instead it redirects you to a URL without the language tag. This made my test work like this:

  1. Go to a non-cached page.
  2. Post a comment to test non-cached commenting.
  3. Post another on the non-cached different URL page.

No cached code was tested.

Merge request reports