feat: forcibly invalidate availabilities cache on booking start
This commit is contained in:
@@ -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