🐛 Fix file quota cache has no expiry
This commit is contained in:
@@ -30,7 +30,7 @@ public class QuotaService(
|
||||
|
||||
var (based, extra) = await GetQuotaVerbose(accountId);
|
||||
var quota = based + extra;
|
||||
await cache.SetAsync(cacheKey, quota);
|
||||
await cache.SetAsync(cacheKey, quota, expiry: TimeSpan.FromMinutes(30));
|
||||
return quota;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user