When theming I work with CSS files and templates files. What cache should I clear while retaining performance?

And what would be the equivalent drush command?

I think drush cc all clears too many things right?


Here's the comprehensive list of cache-clear options and the underlying API functions & what they do:

That should let you fine target the cache to clear when it's needed.

Depending on your workflow, you might also want to force the cache off (e.g. $conf['preprocess_css'] = 0; & $conf['preprocess_js'] = 0;) in local.settings.php for your local dev environment so it doesn't interfere with feedback.

  • Can I force the cache off in backend performance options instead? – Bruno Vincent Apr 17 '17 at 14:36
  • You can turn it off there, but you can't force it; if you update your local site DB from a copy of your live site it will revert back to the same state as the live version. – Shawn Conn Apr 17 '17 at 16:03

For CSS/JS you can do drush cc css-js in Drupal 7.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.