From e2a40aaa3a8bb41960e4fffb51e671406b4b8b3b Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Tue, 23 Mar 2021 20:34:48 +0100 Subject: [PATCH] Do not update query cache at all --- src/pretix/base/services/quotas.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/pretix/base/services/quotas.py b/src/pretix/base/services/quotas.py index b9ce1bdf5c..e90b28e4a9 100644 --- a/src/pretix/base/services/quotas.py +++ b/src/pretix/base/services/quotas.py @@ -133,11 +133,11 @@ class QuotaAvailability: update[q.event_id].append(q) if update: - if dbcache: - Quota.objects.using('default').bulk_update(sum((quotas for event, quotas in update.items()), []), [ - 'cached_availability_state', 'cached_availability_number', 'cached_availability_time', - 'cached_availability_paid_orders' - ], batch_size=50) + # if dbcache: + # Quota.objects.using('default').bulk_update(sum((quotas for event, quotas in update.items()), []), [ + # 'cached_availability_state', 'cached_availability_number', 'cached_availability_time', + # 'cached_availability_paid_orders' + # ], batch_size=50) if settings.HAS_REDIS: rc = get_redis_connection("redis")