feat: forcibly invalidate availabilities cache on booking start

This commit is contained in:
Björn Fromme
2025-12-16 13:46:54 +01:00
parent 59b9a42009
commit 1bb145e3be
3 changed files with 15 additions and 10 deletions
+2 -2
View File
@@ -236,8 +236,8 @@ class BookingService
}
// Fetch and patch availability data (includes allowedBookingStatus from API)
// Using cached: true populates the cache for subsequent participant form loads
$availabilities = $this->travelDataService->getAvailabilityData($dateId, cached: true);
// Force refresh ensures fresh data at booking start, then populates cache for subsequent loads
$availabilities = $this->travelDataService->getAvailabilityData($dateId, cached: true, forceRefresh: true);
if (null !== $availabilities) {
$this->travelDataService->patchAvailabilities($travelData, $availabilities);
}