Caching issue with one-click-booking

Created on 22 May 2023, over 1 year ago

Problem/Motivation

In \Drupal\bookable_calendar\Renderer::addOneClickBooking, the Drupal settings for later ajax calls get provided. However, by default those pages get cached which means, that those settings get cached too. This leads to booking errors, where the first user after a cache refresh gets its email and uid populated into the cached settings, and all subsequent users end up with the settings of that user, i.e. their booking is done for the wrong user, or skipped, if validation errors occur.

Proposed resolution

Properly configure caching for that page on one-click-bookings.

πŸ› Bug report
Status

Fixed

Version

2.2

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany jurgenhaas Gottmadingen

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024