Post detail page

This commit is contained in:
2025-08-04 01:46:26 +08:00
parent db5d631049
commit 1a05f16299
9 changed files with 133 additions and 8 deletions

View File

@@ -400,9 +400,9 @@ public class SubscriptionService(
.OrderByDescending(s => s.BegunAt)
.FirstOrDefaultAsync();
// Cache the result if found (with 30 minutes expiry)
// Cache the result if found (with 5 minutes expiry)
if (subscription != null)
await cache.SetAsync(cacheKey, subscription, TimeSpan.FromMinutes(30));
await cache.SetAsync(cacheKey, subscription, TimeSpan.FromMinutes(5));
return subscription;
}