Skip Navigation

[Resolved] Any known issues with caching plugins with frontend forms?

This support ticket is created 5 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 1 reply, has 2 voices.

Last updated by Waqar 5 years, 10 months ago.

Assisted by: Waqar.

Author
Posts
#1181334

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.

#1181414

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