Hello,
I just changed all our contact forms to CRED forms (which works great by the way).
Most form plugins have problems with long cached sites as
* they use the WordPress nonce to check the form permisson.
* and the nonce is only valid a couple of hours.
I.e. Caldera Forms -> hidden link
The "solution" mostly is to invalid all pages with forms about every X hours.
So my question is:
Is there as similar problem with CRED forms (using the nonce) and we have to regularly invalidad all pages (which we currently do)?
(Background: we have a lot of pages and invaliding puts a lot of load to hour server)
Thank you.
Hi Adrian,
Thank you for contacting us and glad our CRED form plugin is proving useful.
We're not aware of any specific issue where a particular cache plugin/technique can result in conflict with CRED forms. This is mainly due to the fact that the plugin includes a number of measures to force servers to treat each form submission as a new/unique request.
But since "nonces" are still used in our forms too, the general rule will still apply. If your server/CDN applies aggressive cache policies and hold pre-generated static HTML pages for longer durations, the span of that duration should be much less than the expiry time for "nonces".
If you feel that lowering the cache duration is not optimal and your website contains a lot of pages which are not frequently updated, then:
- you'll need to continue on with invalidation of all form pages, after a set duration
or
- exclude those form pages from being cached all together, which will save the server from extra processing.
(most cache plugins have this feature to exclude specific pages from being cached)
I hope these points will help.
regards,
Waqar