<p>I seem to have an issue with a thank you page on user registration in craft 2. The thank you page gets passed a modified  users id which is shown to the the registrant.</p>
<p>However some odd occasions have occurred where a user gets the user id of an already registered user from a few weeks previously. The only way this can happen it seems to me is if the user gets someone else's thank you page from the cache - the signup handling behind the process is solid.</p>
<p>When I look in template cache table has a lot of entries (stalled task not clearing?) I can see the thank you page has lots of caches eg &quot;site:sign-up-thank-you&quot; with the same key. There are no cache tags in the page.</p>
<p>Could this be the cause of the mystery and how can i stop the thank you page being cached or give it a unique key?</p>

CC BY-SA 4.0
2021-10-07T08:55:19.317Z
If it's caching, you might have cache tags in a parent maybe?
Oli
CC BY-SA 4.0
2021-10-18T09:20:20.063Z
I think i solved by excluding the site from server level nginx micro caching and clearing the queue and fixing the stuck tasks. Monitoring and so far its fine
joomkit
<cache><craft2>
How can I stop a user registration thank you page being cached in Craft 2
# How can I stop a user registration thank you page being cached in Craft 2

(Asked by: username_0 on 2021-10-06)

I seem to have an issue with a thank you page on user registration in craft 2. The thank you page gets passed a modified users id which is shown to the the registrant.

However some odd occasions have occurred where a user gets the user id of an already registered user from a few weeks previously. The only way this can happen it seems to me is if the user gets someone else's thank you page from the cache - the signup handling behind the process is solid.

When I look in template cache table has a lot of entries (stalled task not clearing?) I can see the thank you page has lots of caches eg "site:sign-up-thank-you" with the same key. There are no cache tags in the page.

Could this be the cause of the mystery and how can i stop the thank you page being cached or give it a unique key?

**Tags:** cache, craft2
> **Comments:**
> **username_1**: If it's caching, you might have cache tags in a parent maybe?  
> **username_0**: I think i solved by excluding the site from server level nginx micro caching and clearing the queue and fixing the stuck tasks. Monitoring and so far its fine  

---

## 0 answers

