Title: Periodic minification errors
Last modified: March 21, 2025

---

# Periodic minification errors

 *  [John](https://wordpress.org/support/users/dsl225/)
 * (@dsl225)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/periodic-minification-errors/)
 * Hello,
 * Although everything seems to be working fine (shared server) I periodically get
   a whole bunch of minification errors like those here that refer to different 
   active plugins and the site’s theme.
 *     ```wp-block-code
       [21-Mar-2025 02:12:22 UTC] WordPress database error Commands out of sync; you can't run this command now for query SELECT option_value FROM wp_options WHERE option_name = 'w3tc_minify_40d7d' LIMIT 1 made by shutdown_action_hook, do_action('shutdown'), WP_Hook->do_action, WP_Hook->apply_filters, wp_ob_end_flush_all, ob_end_flush, W3TC\Generic_Plugin->ob_callback, W3TC\Util_Bus::do_ob_callbacks, call_user_func, W3TC\Minify_Plugin->ob_callback, W3TC\Minify_AutoJs->execute, W3TC\Minify_AutoJs->process_script_tag, W3TC\Minify_AutoJs->flush_collected, W3TC\_W3_MinifyHelpers->get_minify_url_for_files, W3TC\Minify_Core::urls_for_minification_to_minify_filename, W3TC\Minify_Core::urls_for_minification_to_minify_key, get_option[21-Mar-2025 02:12:22 UTC] WordPress database error Commands out of sync; you can't run this command now for query INSERT INTO wp_options (option_name, option_value, autoload) VALUES ('w3tc_minify_40d7d', '[\"acac\\/wp-includes\\/js\\/jquery\\/jquery.min.js\",\"acac\\/wp-includes\\/js\\/jquery\\/jquery-migrate.min.js\",\"acac\\/wp-content\\/plugins\\/accesspress-social-icons\\/js\\/frontend.js\"]', 'off') ON DUPLICATE KEY UPDATE option_name = VALUES(option_name), option_value = VALUES(option_value), autoload = VALUES(autoload) made by shutdown_action_hook, do_action('shutdown'), WP_Hook->do_action, WP_Hook->apply_filters, wp_ob_end_flush_all, ob_end_flush, W3TC\Generic_Plugin->ob_callback, W3TC\Util_Bus::do_ob_callbacks, call_user_func, W3TC\Minify_Plugin->ob_callback, W3TC\Minify_AutoJs->execute, W3TC\Minify_AutoJs->process_script_tag, W3TC\Minify_AutoJs->flush_collected, W3TC\_W3_MinifyHelpers->get_minify_url_for_files, W3TC\Minify_Core::urls_for_minification_to_minify_filename, W3TC\Minify_Core::urls_for_minification_to_minify_key, update_option, add_option
       ```
   
 * My minification settings are using “disk” as recommended, although I have Redis
   and Memcache also installed.
 * Is there any thing I can do to correct this or may I send you somewhere the whole
   error log of this same day?
 * Many thanks!

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

 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/periodic-minification-errors/#post-18375192)
 * Hello [@dsl225](https://wordpress.org/support/users/dsl225/)
 * Thank You for reaching out and I am happy to help!
   Can you please share if you
   are using any plugin to modify DB behavior or some DB caching system outside 
   of the W3 Total Cache?
 * Thanks!
 *  Thread Starter [John](https://wordpress.org/support/users/dsl225/)
 * (@dsl225)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/periodic-minification-errors/#post-18375795)
 * Hello,
   No, none that I’m aware of. I’m using **Flying Pages** but I don’t think
   it is an issue.
 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/periodic-minification-errors/#post-18378597)
 * Hello [@dsl225](https://wordpress.org/support/users/dsl225/)
 * Thank you for yoru feedback.
   Can you please check and let me know if the option“
   Rewrite URL structure” is enabled in Perfomrance>Minify and pleasetry to manualy
   delete the /cache/minify/ folder and let me know if it helps!
 * Thanks!
 *  Thread Starter [John](https://wordpress.org/support/users/dsl225/)
 * (@dsl225)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/periodic-minification-errors/#post-18380052)
 * Thanks for your feedback.
   “Rewrite URL structure” is indeed enabled. Should I
   leave it as is?I also just deleted the minify folder from server.
 * As those errors used to appear once a week or two, I didn’t got them back yet
   since my initial post.
 * I’ll monitor this closely and will let you know if and when this happens again.
 * Thanks!
 *  Thread Starter [John](https://wordpress.org/support/users/dsl225/)
 * (@dsl225)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/periodic-minification-errors/#post-18389024)
 * Got them again, exactly 1 week since the last one:
 *     ```wp-block-code
       Mar 28, 19:34:13WordPress database error Commands out of sync; you can't run this command now for query INSERT INTO wp_options (option_name, option_value, autoload) VALUES ('w3tc_minify_c99c6', '[\"acac\\/wp-content\\/plugins\\/add-to-any\\/addtoany.min.js\"]', 'off') ON DUPLICATE KEY UPDATE option_name = VALUES(option_name), option_value = VALUES(option_value), autoload = VALUES(autoload) made by shutdown_action_hook, do_action('shutdown'), WP_Hook->do_action, WP_Hook->apply_filters, wp_ob_end_flush_all, ob_end_flush, W3TC\Generic_Plugin->ob_callback, W3TC\Util_Bus::do_ob_callbacks, call_user_func, W3TC\Minify_Plugin->ob_callback, W3TC\Minify_AutoJs->execute, W3TC\Minify_AutoJs->flush_collected, W3TC\_W3_MinifyHelpers->get_minify_url_for_files, W3TC\Minify_Core::urls_for_minification_to_minify_filename, W3TC\Minify_Core::urls_for_minification_to_minify_key, update_option, add_option+ 5 others
       ```
   
 * I now see that I had the **WP Crontrol** plugin active at this site. I just deactivated
   it to see if this makes a difference.
 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/periodic-minification-errors/#post-18415216)
 * Hey [@dsl225](https://wordpress.org/support/users/dsl225/)
 * Just to confirm this.
   Is minify working as expected? Are you using this plugin
   by any chance: [https://wordpress.org/plugins/add-to-any/](https://wordpress.org/plugins/add-to-any/)
 * Thanks!
 *  Thread Starter [John](https://wordpress.org/support/users/dsl225/)
 * (@dsl225)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/periodic-minification-errors/#post-18416524)
 * No, I was getting cache issues with minify and I ended up disabling it.
   But yes,
   this site is using AddtoAny plugin.

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

The topic ‘Periodic minification errors’ is closed to new replies.

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [John](https://wordpress.org/support/users/dsl225/)
 * Last activity: [1 year, 1 month ago](https://wordpress.org/support/topic/periodic-minification-errors/#post-18416524)
 * Status: not resolved