From 96559a2c261cc6dae6be4b099c80ed55155b2277 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Wed, 17 Sep 2025 22:19:43 +0800 Subject: [PATCH] :bug: Fix file quota cache has no expiry --- DysonNetwork.Drive/Billing/QuotaService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DysonNetwork.Drive/Billing/QuotaService.cs b/DysonNetwork.Drive/Billing/QuotaService.cs index a59f294..07e258c 100644 --- a/DysonNetwork.Drive/Billing/QuotaService.cs +++ b/DysonNetwork.Drive/Billing/QuotaService.cs @@ -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; }