WP Super Cache Conflicts Contact Form 7

2 popular Wordpress plugins, Super Cache and Contact Form 7 - there are still some problems expected around _nonceAJAX calls .. How can they be made to work together smoothly? There are definitely situations in which you want to keep ALL of your posts (pages) super-cached, and should not be served dynamically without caching while saving and providing contact form functionality.

If you do not check the "Cache rebuild" setting in the settings, Super Cache will work:

  • standard pages will NOT use the new cache file that must be generated (for example, it REALLY serves (if) an existing super cache file without starting a new cache file to be generated
  • pages with wpcf7-formWILL enabled enable / start the re-creation of the super cache file during the servicing of the initial request. I think this is the moment when everything goes wrong.

Question . How to stop unwanted regeneration of pages with enabled wpcf7-form? Based on the wpcf7 page of the Docs plugins by the author, I expect the wpcf7 form to evolve and evolve to meet these ajax call requirements, such as _nonce. Any idea how to resolve this?

  • to be hard-coded (for example, to exclude _nonce call and / or URL parameter ..) within wpcf7 form(this is contrary to WP standards) or
  • in super cache?
  • any other idea, solution or alternatives?

In this wpcf7 thread , the author says:

Contact Form 7 uses WP nonce as a secret key. Since nonce has a default life of 24 hours, if the cache is cleared less than 24 hours, the two plugins should work without problems, even if the page is cached.

+3
source share

All Articles