Clean caches with a drush command in Drupal 7

/Users/user/Applications/drush/drush -y -r /Users/user/Sites/drupal -l http://localhost cache-clear all

You can select different types of caches:

  • all
  • theme registry
  • menu
  • css+js
  • block
  • module list
  • theme list
  • registry
  • views

Note: You have to install drush to run this command.

You might also like

Reload a module with a drush command in Drupal 7
/Users/user/Applications/drush/drush -y -r /Users/user/Sites/drupal -l http://localhost pm-disable module_name /Users/user/Applications/drush/drush...
Fix “Cannot redeclare class Symfony\…” in Symfony2 after upgrade
After upgrading from Symfony 2.2 to 2.3 I got this error in my application: Fatal error: Cannot redeclare...
Configure virtual hosts for XAMPP in Mac OS X
Lets suppose we want to have 2 virtual hosts in our server wich will be accesible via http://web1.com...
Password protect a Location, LocationMatch or VirtualHost in Apache (XAMPP and Mac OS X)
Protecting a Location or VirtualHost in Apache is very similar to protecting a folder as I explained...
Leave a comment ?

0 Comments.

Leave a Comment