mirror of
https://github.com/pretix/pretix.git
synced 2026-05-03 14:54:04 +00:00
Improve performance of quota cache task
This commit is contained in:
@@ -424,5 +424,7 @@ def refresh_quota_caches():
|
||||
Q(subevent__date_to__isnull=False, subevent__date_to__gte=now() - timedelta(days=14)) |
|
||||
Q(subevent__date_from__gte=now() - timedelta(days=14))
|
||||
)
|
||||
qa = QuotaAvailability(early_out=False)
|
||||
for q in quotas:
|
||||
q.availability()
|
||||
qa.queue(q)
|
||||
qa.compute()
|
||||
|
||||
Reference in New Issue
Block a user