Bug #23535
closed
- Status changed from New to Reporter Feedback
The issue is only happening for logged-out users. Because the single event page is cached, the security nonce is invalid when submitting the RSVP.
Does GCDI usually have RSVPs from users that are not members of the Commons? If the majority of RSVPs are Commons users, a workaround would involve only allowing RSVPs for logged-in users: https://gcdi.commons.gc.cuny.edu/wp-admin/admin.php?page=tec-tickets-settings
Would that be okay? If not, we would have to code a workaround to disable the cache for single event pages and only when the event in question has enabled RSVPs.
For now, I've omitted caching single event pages from GCDI. Please check to see the RSVP functionality is working for logged-out users.
Boone, I've added the following to the .htaccess file on production.
# Omit caching single event pages from GCDI site
# See https://redmine.gc.cuny.edu/issues/23535
RewriteCond %{HTTP_HOST} ^gcdi\.commons\.gc\.cuny\.edu$ [NC]
RewriteCond %{REQUEST_URI} ^/event/
RewriteRule .* - [E=Cache-Control:no-cache]
Though if more sites are using the RSVP functionality with the-events-calendar / event-tickets plugins, we'll need to code a more, general workaround involving filtering Litespeed Cache's exclude settings at the WordPress level.
- Deployment actions updated (diff)
- Deployment actions updated (diff)
The RSVP functionality is working now. Thanks a lot. You can close the issue if needed.
- Status changed from Reporter Feedback to Resolved
Also available in: Atom
PDF