feat: forcibly invalidate availabilities cache on booking start
This commit is contained in:
1 parent
3c2ade9299
commit
79b7e2aaa5
3 files changed
+15
-10
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user