perf: extend reconciliation cache ttl

Extend summary and trend cache lifetime to thirty minutes.
This commit is contained in:
qiuxiang 2026-11-11 20:51:43 +08:00
parent b1e4eb3c72
commit 886f66293b

View File

@ -67,7 +67,7 @@ class StoreReceivingBalanceOverview extends Controller
return response()->json(Cache::remember(
$cacheKey,
now()->addMinutes(5),
now()->addMinutes(30),
static fn (): array => $service->build(...$period),
));
} catch (Throwable $exception) {
@ -89,7 +89,7 @@ class StoreReceivingBalanceOverview extends Controller
return response()->json(Cache::remember(
$cacheKey,
now()->addMinutes(5),
now()->addMinutes(30),
static fn (): array => $service->buildTrend(...$period),
));
} catch (Throwable $exception) {