-2

I have installed Drush 8 for one my Drupal 8 project.

when I run drush cc it will display many options as listed here.

> drush cc
Enter a number to choose which cache to clear.
[0]  :  Cancel
[1]  :  drush
[2]  :  theme-registry
[3]  :  menu
[4]  :  css-js
[5]  :  block
[6]  :  module-list
[7]  :  theme-list
[8]  :  render
[9]  :  views

It is very easy to clear specific cache, instead of Rebuilt entire cache (drush cr).

But currently, it display only two options, I'm not able to see many options as listed above.

enter image description here

Can any one please explain why suddenly I could not able to see all options?

FYI: There is a option to clear specific cache from admin interface. I don't want that solution here.

Edit: Installed drush via composer(composer global require drush/drush:8.*). Installed version(8.1.18).

  • 3
    You should really use Drush 9 with Drupal 8 and install it site-locally - ref docs.drush.org/en/master/install Anyway, I guess your problem is where you run the command. Are you inside the Drupal directory? And the output of drush statusto your question - and some info about the directory structure / how you installed Drupal. – hansfn Jan 22 at 12:37
  • Hi @hansfn: Due to some restriction, I couldn't able to use Drush 9. Bcz our site is not using composer. I have installed Drush 8 globally. It was working fine earlier. I'm running Drush status in Drupal root directory. Which is giving all site details, DB details, etc .. – kalidasan Jan 24 at 5:10
  • @hansfn: As I mentioned earlier, it was working fine(displayed all options), suddenly it is showing only two options. – kalidasan Jan 24 at 5:16
  • 1) Can't you install Drush 9 globally? That should work too. 2) drush status works, but not drush cc - in the same directory? Weird. Try running Drush with debug info and see if you get some useful info. – hansfn Jan 24 at 9:48
  • @hansfn I dint mention that I can't install Drush 9. May be you miss understood my questions & my above comment. – kalidasan Jan 26 at 16:13

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.