Title: Multisite + Cache-Busting
Last modified: March 28, 2024

---

# Multisite + Cache-Busting

 *  Resolved [krasenslavov](https://wordpress.org/support/users/krasenslavov/)
 * (@krasenslavov)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/multisite-cache-busting/)
 * I moved a bunch of sites to Multisite, the plugin was both activated on the sub-
   site and the network. The Cache-Busting select option field was both disabled
   on both the network and a single site, and even the original site that was transferred
   to the WPMU had Cache-Bustingit didn’t work on the multisite.
 * I needed to manually remove the “disabled” select attr on the network level, 
   select Don’t Override, and then save. This allowed me to go to all sub-sites 
   change and select Enable for Cache-Busting (they weren’t disabled anymore). Saved
   and it worked as before. 
   The network option still showing disabled but I guess
   the db option was added. So, underneath everything works as it should, maybe 
   a simple check when displaying the form was messed up.
 * This is more like a bug to me, and I should’ve reported it on the GitHub repo.
   
   Thanks,Krasen

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

 *  Plugin Author [Oleksii Bolhunovskyi](https://wordpress.org/support/users/obolgun/)
 * (@obolgun)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/multisite-cache-busting/#post-17535977)
 * Hello Krasen,
 * Thank you for using our product and we are happy to know that it is helpful for
   your projects.
 * We will investigate the issue and fix as soon an possible.
 * Another way to enable Cache Busting is to use [WP_STATELESS_MEDIA_CACHE_BUSTING](https://stateless.udx.io/docs/constants/#wpstatelessmediacachebusting)
   constant.
 * Best regards and have a nice day.
 *  Plugin Author [Oleksii Bolhunovskyi](https://wordpress.org/support/users/obolgun/)
 * (@obolgun)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/multisite-cache-busting/#post-17552684)
 * Hello Krasen,
 * We released the new version 4.0.0 and have some update for you.
 * We investigated the issue and found that this behavior is intended and thought-
   out. The reasons are:
    - It is possible to set different WP-Stateless modes for any single site in 
      the network, but `Ephemeral` and `Stateless` modes require `Cache-Busting`
      turned On
    - It is possible to set up the same Google Storage folder for several sites 
      in the network and the files with the same names uploaded from different sites
      will mess up.
 * So to prevent these issues we **enforce** `Cache-Busting` setting in multisite
   environment and disable the ability to change it.
 * But from the other hand we understand the complexity of the issue so we decided
   to provide the filter that can override any setting in WP-Stateless on the highest
   level. So if you want to **enable** Cache-Busting for particular site you can
   use the following code:
 * `add_filter( 'wp_stateless_get_setting_hashify_file_name', function( $value, 
   $default ) { return 'true'; }, 10, 2);`
 * For disabling Cache-Busting:
 * `add_filter( 'wp_stateless_get_setting_hashify_file_name', function( $value, 
   $default ) { return 'false'; }, 10, 2);`
 * Please note that this overrides every other setting, config constant and so on.
   So even if you see the setting in Admin Panel – the exact behavior is ruled by
   this code top-most.
 * Please let us know if this works for you.
 *  Thread Starter [krasenslavov](https://wordpress.org/support/users/krasenslavov/)
 * (@krasenslavov)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/multisite-cache-busting/#post-17553062)
 * Thank you, this seems like a very nice additional option for developers and since
   it is something done on purpose in the first place it makes sense not to include
   it in the UI.
 * Krasen

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

The topic ‘Multisite + Cache-Busting’ is closed to new replies.

 * ![](https://ps.w.org/wp-stateless/assets/icon.svg?rev=1715943)
 * [WP-Stateless - Google Cloud Storage](https://wordpress.org/plugins/wp-stateless/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-stateless/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-stateless/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-stateless/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-stateless/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-stateless/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [krasenslavov](https://wordpress.org/support/users/krasenslavov/)
 * Last activity: [2 years, 1 month ago](https://wordpress.org/support/topic/multisite-cache-busting/#post-17553062)
 * Status: resolved