perf: extend reconciliation cache ttl
Extend summary and trend cache lifetime to thirty minutes.
This commit is contained in:
parent
b1e4eb3c72
commit
886f66293b
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user