Divi Contact Form not working with LiteSpeedCache-Plugin




Wordpress LScache Plugin: Divi Contact Form not working with LiteSpeedCache-Plugin

Last Updated on: Wed, 15 Apr 2026 00:00:02
Hi, I recognized problems with divi contact form when LiteSpeedPlugin is activated. The form data could not be submitted after some days. Some researches give me the hint with the nonces problem. The TTL of the page is longer than the Lifetime of the nonce. So if I exclude the page with the contact form it works fine. I read this article https://blog.litespeedtech.com/2020/07/08/cache-wordpress-nonces/ and that should be solve my problem. Even without defining special nonces-excludes because it should be predefined as the articel mentioned Divi Theme Builder et-pb-contact-form-submit . But it does not work. It seems as the nonce exclusion does not work. I also tried to add additional nonces like et- or something like that, but it is not working. ReportNumber: VMVTCZRA Regards Hi, please try use et , save and purge all then follow this guide to grab the debug log , after you get the log , please put it in https://pastebin.ubuntu.com/ then share the link of it. Best regards, Hi I have done what you said. Here is the debug log from one time call the page, https://pastebin.ubuntu.com/p/3vzJ4cqkMV/ If you need the log when the problem occurs, let me know. Then I have to mody nonces lifetime shortly. regards Hi, You only have the contact form in contact page ? if that so , please try add this into active themes functions.php if ( defined( LSCWP_V ) ) do_action( litespeed_nonce, _wpnonce-et-pb-contact-form-submitted-0 ) let me know how it goes Best regards, I will try it, but I have 3 or 4 pages with a divi contact form. okay , lets use that contact page as test first Ok I have tested it. But it doesnt work I have changed functions.php with your code and the nonce-lifetime-change to 2minutes. Purge all, called contact page, see in page source current datetime from ls.plugin, sending contact form works, but 3 minutes later I refresh the page, same nonce and after submitting get the error Please refresh the page and try again. but that doesnt work because the nonce stays the same. Hi, Please dont change the nonce life the ESI nonce was fixed on 12 hours or edit file /litespeed-cache/src/esi.cls.php , at line 792 , change 43200 to 60 , save and purge all Best regards Ok, thanks for that hint. Now its working. Nonce gets changed. Whats the problem? Is the ESI Nonces List in LS-config not the right place? @CacheCrawler I think it is my failure. Because I thought that the esi nonce-lifetime isnt a fixed value of 12hours, I though that it depends on the wordpress setting add_filter( nonce_life, my_nonce_lifetime ) After activating esi I have not waited 12hours, Ive changed nonce_life to 2minutes in wordpress only. But now with your hint of esi.cls.php I saw whats going wrong. I will do a final test on live site and will report it here after 12hours of waiting but I am sure it wil work. Thank you for your help as additional info divi contact form is working out of the box with only esi enabled, I dont have to put manually additional nonce-name to the list on litespeed config. Great plugin, great support, thank you. I close this ticket now.



LiteCache Rush: Speed comes from using less, not from doing it faster



Reference