### [Configuring Optimization Settings for WPForms in W3 Total Cache](https://wpforms.com/docs/configuring-optimization-settings-for-wpforms-in-w3-total-cache/)

**Published:** June 17, 2024
**Author:** Umair Majeed

**Excerpt:** Learn how to adjust W3 Total Cache settings to prevent conflicts with WPForms.

**Content:**

Are you experiencing issues with WPForms when W3 Total Cache is enabled? Many site owners use W3 Total Cache to enhance site performance, but its settings can sometimes interfere with WPForms functionality.

In this guide will show you how to adjust W3 Total Cache settings to ensure WPForms runs smoothly.

- [Adjusting W3 Total Cache](#w3-total-cache)
    - [General Settings](#general-settings)
    - [Minify](#minify)

---

## Adjusting W3 Total Cache

[W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/) has two different areas where you can configure settings for minifying JavaScript code: **General Settings** and **Minify.** We’ll go over how to disable JavaScript minification in both options.

#### General Settings

First, you’ll need to access the general settings in **Performance » General Settings**. Then, scroll to the **Minify** section.

![General settings W3 Total Cache](https://wpforms.com/wp-content/uploads/2021/10/general-settings-W3-total-cache.png)From here, be sure to disable the **Minify** option by unchecking the **Enable** checkbox.

![Disable minification W3 Total Cache](https://wpforms.com/wp-content/uploads/2021/10/disable-minification-W3-total-cache-1.png)Then, click on the **Save Settings & Purge Caches** button and check if you still have a JavaScript issue.

![Save settings and purge caches button.](https://wpforms.com/wp-content/uploads/2021/10/save-settings-and-purge-caches-button.png)#### Minify

If the steps above don’t resolve the issue, you can further fine-tune the optimization settings. To do this, go to **Performance » Minify**. Then, scroll to the JS section.

Then, disable the **JS minify settings** by unchecking the checkbox next to **Enable**.

![JS minify settings W3](https://wpforms.com/wp-content/uploads/2021/10/JS-minify-settings-W3.png)When you’re ready, click the **Save Settings & Purge Caches** button and check to see if the issue is resolved.

![Save settings and purge caches button.](https://wpforms.com/wp-content/uploads/2021/10/save-settings-and-purge-caches-button.png)If the issue still persists, scroll to the **Advanced** section and locate the **Never minify the following JS files** field. In this field, you can exclude WPForms assets by inputting the following script:

`/wp-content/plugins/wpforms/assets/js/frontend/wpforms.min.js`

![Exclude WPForms assets W3 Total Cache](https://wpforms.com/wp-content/uploads/2024/10/exclude-wpforms-assets-w3-total-cache-1.png)Once you’ve added the WPForms script, be sure to click the **Save Settings & Purge Caches** button to save your changes.

**Note:** For more specific information on W3 Total Cache settings, please refer to their [documentation](https://www.boldgrid.com/support/w3-total-cache/).

![Save settings and purge caches button.](https://wpforms.com/wp-content/uploads/2021/10/save-settings-and-purge-caches-button.png)That’s it! Now you know how to configure W3 Total Cache settings to avoid conflicts with WPForms.

Next, would you like to learn more about troubleshooting JavaScript errors in WPForms? Be sure to check out our [troubleshooting JavaScript errors](https://wpforms.com/docs/how-to-troubleshoot-javascript-issues-in-wpforms/) guide for more details.

**Categories:** Troubleshooting, Troubleshooting and Support

---

