django32: use public API to clear caches (#67760)

This commit is contained in:
Emmanuel Cazenave 2023-01-12 17:17:23 +01:00 committed by Benjamin Dauvergne
parent b9e4dab140
commit 9bc96520ac
1 changed files with 2 additions and 1 deletions

View File

@ -54,7 +54,8 @@ def test_thread(tenants, settings, client):
def test_cache(tenants, client):
# Clear caches
caches._caches.caches = {}
for c in caches.all():
c.clear()
cache.set('coin', 1)