• Resolved Chad Reitsma

    (@chadreitsma)


    Hey guys,
    I need some help πŸ™‚

    We keep running into the same issue with form plugins, page-caching (both dynamic, and basic) will contain an expired nonce and the form will not submit.

    Some of our websites have a form on every page, so we can’t use the exception (do not cache specific pages).

    I have also tried creating a CRON job which triggers a page-flush every 10 hours (shorter than the nonce-lifespan). Using this snippet:

    $w3_plugin_totalcache = new W3TC\Generic_AdminActions_Flush;
     $w3_plugin_totalcache->w3tc_flush_pgcache();

    It doesn’t seem to work… Is there a global “Cache Lifetime” setting so I don’t have to use a CRON job? Or is there a way to Auto-Flush the cache after a specific time without CRON?

    Appreciate your help!

    Cheers,
    C.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello,

    You can use Cache Preload to Automatically prime the page cache in Performance>Page Cache. With this, you can choose the number of seconds to wait before creating another set of cached pages.

    Thread Starter Chad Reitsma

    (@chadreitsma)

    Thanks Marko, that’s exactly what we need. Appreciate your quick response!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Form Nonce / Token Issues’ is closed to new replies.