mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 09:08:10 +08:00

Instead of having to remember every time, just always wait until the current transaction (if it exists) has committed before clearing any DistributedCache. The only exception to this is caches that aren't caching things from postgres. This means we have to do the test setup after setting the test transaction, because doing the test setup involves clearing caches.