Cache quotas on frontpage shortly under very high load

This commit is contained in:
Raphael Michel
2017-10-18 10:17:23 +02:00
parent a2ba0f8b9f
commit 0f2b56adb4
2 changed files with 5 additions and 1 deletions

View File

@@ -778,6 +778,7 @@ class Quota(LoggedModel):
now_dt = now_dt or now()
res = self._availability(now_dt, count_waitinglist)
self.event.cache.delete('item_quota_cache')
if count_waitinglist and not self.cache_is_hot(now_dt):
self.cached_availability_state = res[0]
self.cached_availability_number = res[1]