Title: disable plugin makes error / not able to control cache size
Last modified: August 30, 2016

---

# disable plugin makes error / not able to control cache size

 *  Resolved [manualmode](https://wordpress.org/support/users/manualmode/)
 * (@manualmode)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/disable-plugin-makes-error/)
 * Hi, thanks for the great plugin.
 * As the cache file becomes very big, so i tried the suggestion to put
 *     ```
       add_filter('autoptimize_js_include_inline','support_ao_js_include_inline',10,1);
       function support_ao_js_include_inline() {
               return false;
       }
       ```
   
 * in my function.php file. However, after i put this into my function.php, my slider”
   WPB woocommerce products slider” ( based on owl carousel) won’t work (just disappeared).
 * So i tried to disable the plugin…but there is another error after i disable the
   plugin “Uncaught TypeError: jQuery(…).dialog is not a function”
    this error points
   to the line of code “jQuery( “#wcpgsk-dialog-validation-errors” ).dialog({“ seems
   to be the plugin that i use for date time picker (the plugin name is woo commerce
   poor guys swiss knife).
 * I have to enable the autoptimize plugin again ( have to tick Optimize JavaScript
   Code) to make the date time picker work. This is very weird >_<
 * Can you help with this:
    1. the filter to control cache conflict with the slider?
   2. after i disable the plugin, the date and time picker stop working 3. does 
   the cache file size affect the site speed?
 * Thanks a lot.
 * [https://wordpress.org/plugins/autoptimize/](https://wordpress.org/plugins/autoptimize/)

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

 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/disable-plugin-makes-error/#post-6552383)
 * Cache size does affect site speed, as it means that;
    1. AO will have to minify
   for every request that makes it into the WordPress loop (i.e. every request that
   is not handled by your page caching plugin) 2. users might have to download another
   JS-file for each and every page on your site
 * So you do need to find a solution there.
 * If inline JS is not aggregated, you might have to “force JS in head” for the 
   inline JS to work. Alternatively, instead of forcing AO not to aggregate inline
   JS, you could also try to exclude the page- or request-specific inline JS as 
   described [in the FAQ](https://wordpress.org/plugins/autoptimize/faq/) (& the
   linked blogpost in there).
 * Finally, when AO is disabled (and page & browser caches are purged), there is
   nothing AO can do to make or break your JS I’m afraid. the error seems to indicate
   that the jQueryUI ([of which dialog is a function](https://jqueryui.com/dialog/))
   is not loaded?
 * hope this helps,
    frank
 *  Thread Starter [manualmode](https://wordpress.org/support/users/manualmode/)
 * (@manualmode)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/disable-plugin-makes-error/#post-6552509)
 * Hi Frank, thanks for your reply.
 * I will just keep everything as it is and will manually delete the cache.
 * Thanks again for the great plugin.

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

The topic ‘disable plugin makes error / not able to control cache size’ 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/)

 * 2 replies
 * 2 participants
 * Last reply from: [manualmode](https://wordpress.org/support/users/manualmode/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/disable-plugin-makes-error/#post-6552509)
 * Status: resolved