Is there a way to pause form submissions during the plugin/WordPress core upgrade process. The problem I am trying to solve is that when upgrading a live site at some point the default WP 'Briefly unavailable for scheduled maintenance' message appears.
In most cases this is fine, the user can simply reload their page. But a site I am working on has some complex (and long) multi-page forms. It is entirely possible that a user could be on one of these forms when the upgrade button is hit. They could then in theory press submit at the very time the database is unavailable - meaning their data is lost.
Is there anything that I could do about this? I am currently using one particular plugin to manage forms, but in theory this is a problem that could exist for any plugin, or indeed any form submission code you'd care to create.
Thoughts and theories welcomed!