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?
Drupal Answers is a question and answer site for Drupal developers and administrators. It only takes a minute to sign up.Sign up to join this community
Here's the comprehensive list of cache-clear options and the underlying API functions & what they do:
drush cc drush-
drush_cache_clear_drush(): Drush's internal cache for data from the Drupal install (e.g. available module commands).
drush cc all-
drupal_flush_all_caches(): All Drupal caches.
drush cc theme-registry-
drupal_theme_rebuild(): All theme metadata.
drush cc menu-
menu_rebuild(): All menu metadata.
drush cc css-js-
drupal_clear_js_cache(): Aggreggated/Minified CSS/JS files.
drush cc block-
cache_clear_all(NULL, 'cache_block'): All block metadata.
drush cc module-list-
system_rebuild_module_data(): All available modules (reloaded from file system).
drush cc theme-list-
system_rebuild_theme_data(): All available themes (reloaded from file system).
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.