Title: Cache problems with forms
Last modified: September 24, 2022

---

# Cache problems with forms

 *  Resolved [cyberstyle7](https://wordpress.org/support/users/cyberstyle7/)
 * (@cyberstyle7)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/cache-problems-with-forms/)
 * Hello!
 * I’m using a pop up with a form. It is working fine for the first 24 hours but
   after that, the form does not work. It does not submit in the last step and stay
   stuck there. When that happens I need to clear all my cache plugins and It starts
   working again. I’m using CloudFlare CDN and his cache system.
 * I need help, thanks.

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/cache-problems-with-forms/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/cache-problems-with-forms/page/2/?output_format=md)

 *  Plugin Author [Brave](https://wordpress.org/support/users/getbrave/)
 * (@getbrave)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/cache-problems-with-forms/#post-15437922)
 * [@cyberstyle7](https://wordpress.org/support/users/cyberstyle7/) Cloudflare cache
   should not cause this issue. This mostly happens if object cache option of a 
   caching plugin is active. Are you using any caching plugin of some sort?
 * And you can also reduce the “Browser Cache TTL” option of Cloudflare and see 
   if that fixes the issue.
 *  Thread Starter [cyberstyle7](https://wordpress.org/support/users/cyberstyle7/)
 * (@cyberstyle7)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/cache-problems-with-forms/#post-15443921)
 * Hello
 * I’m using Litespeed cache + CloudFlare. I don’t have object caching enable. I
   set Browser Cache TTL in CloudFlare to 1 hour yesterday and the problem persist.
   Is there anything else I can do?
 * Thanks.
 *  Plugin Author [Brave](https://wordpress.org/support/users/getbrave/)
 * (@getbrave)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/cache-problems-with-forms/#post-15444049)
 * [@cyberstyle7](https://wordpress.org/support/users/cyberstyle7/) Can you kindly
   disable the Litespeed caching and see if that fixes the issue?
 * Thanks
 *  Thread Starter [cyberstyle7](https://wordpress.org/support/users/cyberstyle7/)
 * (@cyberstyle7)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/cache-problems-with-forms/#post-15454414)
 * I did that, but the same problem persist. I’m only using cloudflare cache now…
   there is a huge problem between the plugin and cache systems.
 *  Plugin Author [Brave](https://wordpress.org/support/users/getbrave/)
 * (@getbrave)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/cache-problems-with-forms/#post-15457748)
 * [@cyberstyle7](https://wordpress.org/support/users/cyberstyle7/) Can you please
   share the page link where the popup is visible?
 * Thanks
 *  Thread Starter [cyberstyle7](https://wordpress.org/support/users/cyberstyle7/)
 * (@cyberstyle7)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/cache-problems-with-forms/#post-15464998)
 * Yes, this is the site : [https://freefiregenerador.com/](https://freefiregenerador.com/)
 *  Plugin Author [Brave](https://wordpress.org/support/users/getbrave/)
 * (@getbrave)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/cache-problems-with-forms/#post-15466867)
 * [@cyberstyle7](https://wordpress.org/support/users/cyberstyle7/) Just made a 
   test submission and it worked fine. You said you cannot get it to work from your
   end. Can you kindly submit the form and when it fails, open the browser console
   log(press ctrl+shift+J). There should be some error messages. Take a screenshot
   of the console log and share it with us.
 * Thanks
 *  Thread Starter [cyberstyle7](https://wordpress.org/support/users/cyberstyle7/)
 * (@cyberstyle7)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/cache-problems-with-forms/#post-15468901)
 * ok, this is the error message : [https://ibb.co/0Cy4MVB](https://ibb.co/0Cy4MVB)
 * You can test it again, I won’t clear the cache, Thanks.
 *  Plugin Author [Brave](https://wordpress.org/support/users/getbrave/)
 * (@getbrave)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/cache-problems-with-forms/#post-15474050)
 * [@cyberstyle7](https://wordpress.org/support/users/cyberstyle7/) Can you kindly
   share your php error log file through `contact@getbrave.io`
 * Thanks
 *  Thread Starter [cyberstyle7](https://wordpress.org/support/users/cyberstyle7/)
 * (@cyberstyle7)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/cache-problems-with-forms/#post-15514547)
 * How can I get that log file?
 *  Plugin Author [Brave](https://wordpress.org/support/users/getbrave/)
 * (@getbrave)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/cache-problems-with-forms/#post-15514549)
 * You can ask your webhost to send it to you.
 *  Thread Starter [cyberstyle7](https://wordpress.org/support/users/cyberstyle7/)
 * (@cyberstyle7)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/cache-problems-with-forms/#post-15524801)
 * Php is not the problem. I have been testing using the In content form in a page
   without cache and It is working fine. The cache systems are the problem, so you
   have to check that.
 *  Plugin Author [Brave](https://wordpress.org/support/users/getbrave/)
 * (@getbrave)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/cache-problems-with-forms/#post-15524824)
 * [@cyberstyle7](https://wordpress.org/support/users/cyberstyle7/) You are correct.
   Its not an issue with php.
    The email function is failing to send the email and
   its prints out the reason for the failure in the php error log file.
 * Its most probably a cache issue though. The mail function uses a short lived 
   security key which is generated on each page load. If your cache plugin caches
   the whole page, the cached security key is used which is already expired and 
   mail function fails.
 * Can you kindly make sure your cache plugin/system is not caching whole page/html?
   or Object caching is not enabled?
 * Thanks
 *  Thread Starter [cyberstyle7](https://wordpress.org/support/users/cyberstyle7/)
 * (@cyberstyle7)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/cache-problems-with-forms/#post-15524933)
 * Right, that is the problem. I’m not using object caching, but the plugins I have
   been using (LiteSpeedCache and WP Rocket) are caching the whole page/html for
   default. So I don’t know is there a way to exclude only the security key that
   you said.
 *  Plugin Author [Brave](https://wordpress.org/support/users/getbrave/)
 * (@getbrave)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/cache-problems-with-forms/#post-15524951)
 * [@cyberstyle7](https://wordpress.org/support/users/cyberstyle7/) Whole page caching
   is not a good idea. Most plugins rely on the wordpress generated security key
   for ajax operations. So if you turn that on, the plugins that does ajax operations
   will fail.
 * Since the security keys are valid for 24 hours. Its better to set the page cache
   to expire within 24 hours or less.
 * Thanks
    -  This reply was modified 4 years, 2 months ago by [Brave](https://wordpress.org/support/users/getbrave/).

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/cache-problems-with-forms/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/cache-problems-with-forms/page/2/?output_format=md)

The topic ‘Cache problems with forms’ is closed to new replies.

 * ![](https://ps.w.org/brave-popup-builder/assets/icon-256x256.gif?rev=2407788)
 * [Brave Popup Builder - Popup, Optins, Lead Generation, Survey & Interactive Content](https://wordpress.org/plugins/brave-popup-builder/)
 * [Support Threads](https://wordpress.org/support/plugin/brave-popup-builder/)
 * [Active Topics](https://wordpress.org/support/plugin/brave-popup-builder/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/brave-popup-builder/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/brave-popup-builder/reviews/)

 * 16 replies
 * 3 participants
 * Last reply from: [cyberstyle7](https://wordpress.org/support/users/cyberstyle7/)
 * Last activity: [4 years, 2 months ago](https://wordpress.org/support/topic/cache-problems-with-forms/page/2/#post-15524972)
 * Status: resolved