Forked from msankhala/drush-turn-off-aggregate-assets.txt
Created
January 2, 2023 08:18
-
-
Save lhuria94/c57bcc2b074602477826dd6b749ad3c5 to your computer and use it in GitHub Desktop.
drush disable js/css aggregation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Drupal 7 | |
// To turn on JS Aggregation | |
drush vset preprocess_js 1 --yes | |
// To clear all Cache | |
drush cc all | |
// To disable JS Aggregation | |
drush vset preprocess_js 0 --yes | |
// To clear cache of JS and CSS only | |
drush cc css+js | |
// To enable CSS Aggregation | |
drush vset preprocess_css 1 --yes | |
// To disable CSS Aggregation | |
drush vset preprocess_css 0 --yes | |
// If you have anonymous page caching turned on then you might also need to disable that. This can be done by setting the cache variable to 0. | |
drush variable-set cache 0 | |
Drupal 8: | |
# disable CSS/JS aggregation | |
drush -y config-set system.performance css.preprocess 0 | |
drush -y config-set system.performance js.preprocess 0 | |
drush sset system.maintenance_mode TRUE | |
Drupal 7: | |
drush vset maintenance_mode 1 | |
drush variable-set --yes maintenance_mode_message "This site is being maintained" | |
Drupal 6: | |
drush vset site_offline 1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment