Form code expiring each day – need to refresh website cache

Support forumForm code expiring each day – need to refresh website cache
Edmond Mellina asked 7 years ago
We have a problem that didn't occur before: each new day, the form is not loading because "form code expired". We have to refresh the website's cache (CometCache) to get the form to load again. Is there a way to fix the issue for good? PS - we have been using Comet Cache for a long time and EasyAppointments was fine before.
3 Answers
Nikola Loncar Staff answered 7 years ago
Hi, looks like that case store nonce so it will be wrong when user submit it. I can add it as option to use Nonce or not?
emellina answered 7 years ago
Sounds like a good idea 👍🏻
emellina answered 7 years ago
Here is a workaround (why we didn't think about it before??! ;-): excluding the form page's URL in CometCache prevents the problem from occurring. It's a good workaround until the option to use Nonce or not is embedded in a new update of the plugin.
Nikola Loncar Staff replied 7 years ago

Hi, nonce is preventing from making unwanted request to backend of plugin. For example if someone wants to make spam calls etc. 🙂 But in this case caching makes the problem.

Best regards,
Nikola