Title: ConvertPro breaks when using Autoptimize
Last modified: April 12, 2021

---

# ConvertPro breaks when using Autoptimize

 *  Resolved [barrex](https://wordpress.org/support/users/barrex/)
 * (@barrex)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/convertpro-breaks-when-using-autoptimize/)
 * ConvertPro supoport:
    Just to let you know that the [object object] issue usually
   occurs because of the cache. After clearing the cache on the website the form
   should start working. If the cache plugin provides the option to exclude the 
   JS files then below are the Convert Pro JS files that can be excluded from caching:/
   wp-content/plugins/convertpro/assets/modules/js/cp-popup.js /wp-content/plugins/
   convertpro/assets/modules/js/cp-popup.min.js /wp-content/plugins/convertpro/assets/
   modules/js/cp-submit-actions.js /wp-content/plugins/convertpro/assets/modules/
   js/cp-video-api.js /wp-content/plugins/convertpro/assets/modules/js/frosty.js
 * Convert Pro has provided security in which it generates random numbers in which
   are checked in the server-side during the form submission to make sure that no
   one is spamming the form, this random number is called the nonce.
 * After clearing the cache it regenerates the new one.
 * This random number is only valid for 12 hours or so. After 12 hours it generates
   a new random number. Due to server cache, the old number is always served even
   after 12 hours depending upon the duration of the cache which in turn identifies
   the old number as a threat and does not allow the form to submit.
 * Now, while submitting the Convert Pro form and AJAX request is sent, in which
   the nonce is sent, However, with heavy use of caching systems the older nonce
   value is been used and which is not matched in the back-end and it becomes harder
   to generate new them and output fresh nonces instead of cached ones.
 * So, it needs to be clear the website cache to get the fresh nonce.
 * As of now, I have cleared the cache from Autoptimize and checked the form submission,
   and it is working now.
 * And also, one thing, you can do is, reduce the expiration time of the cache to
   less or equal to 6-8 hours.
    …………………………………………
 * I excluded the JS files, but issue still persisted.
 * Does Autoptimize have option to reduce the expiration time of the cache to less
   or equal to 6-8 hours?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fconvertpro-breaks-when-using-autoptimize%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/convertpro-breaks-when-using-autoptimize/#post-14308193)
 * Autoptimize does not do page caching, so the nonce (random number) issue is something
   that will have to be looked into at your page caching component barrex
 * hope this helps,
    frank
 *  Thread Starter [barrex](https://wordpress.org/support/users/barrex/)
 * (@barrex)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/convertpro-breaks-when-using-autoptimize/#post-14308365)
 * Thanks for answering quickly.
    Once I delete Autoptimize cache problem is solved.
   Right now I need to keep deleting Autoptimize cache constantly manually.
 * Do you have an option to delete cache automatically every 6 hours?
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/convertpro-breaks-when-using-autoptimize/#post-14308766)
 * When AO’s cache is cleared, most page caching solutions also clear their own 
   cache, so the question still is; what page cache solution are you using?

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

The topic ‘ConvertPro breaks when using Autoptimize’ is closed to new replies.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/convertpro-breaks-when-using-autoptimize/#post-14308766)
 * Status: resolved