Dear Kriesi-Team,
I’m using the latest enfold and the latest wp version. Our system is running on a root server so we pretty much have access to everything. Currently enfold is running wild and creates a ton of js- and css-files and database updates.
Old story – I’ve seen related posts here but didn’t find a solution for our case.
If I disable the “adding timestamps to merge files”-setting and save the changes everything works as expected. The problem is that we’ve created a multisite network and I simply can’t log in into every website to make this change manually.
What we would like to do is to change this setting directly in every wp_$_options table of every blog. So far I didn’t want to activate the generel log of mysql to find out which query does the magic, so I’m kindly asking for help.
A sql query or php snippet or pseudo code would be best. If there’s more to do than just an db-field update, please explain.
BTW: the default value for adding timestamps should be changed. Browserchaching of js- and css-files is maybe something a developer should take care of, but for the commen user it’s a big help of reducing server requests. I don’t think js- and css-files should change that often ones a website is set up and running. Content updates should not touch js and css imho…
Thank you for your time!
Hey DigitalBeatGmbH,
Thank you for the inquiry.
We could use this snippet in the functions.php file to update the value of the merge_disable_unique_timestamp option.
add_action('after_setup_theme', function() {
avia_update_option('merge_disable_unique_timestamp', 'disable_unique_timestamp');
}, 999);
Refresh the dashboard or the page once or twice, then remove the snippet.
Best regards,
Ismael