NoCache

Categories

Component ID

2799687

Component name

NoCache

Component type

module

Maintenance status

Development status

Component security advisory coverage

covered

Downloads

257

Component created

Component changed

Component body

drush nocache

Many times during the development when you get the database from the production server to your local, dev or test environment you have to disable caches, CDN and probably something else.
You don't need to do it manually, there's now a drush command to do it all at once.

Why do not set it in $conf?

Because...

  1. It requires you to change the code. When you're on local it is easy, but when the code is on remote server and pulled there with VCS it is not handy.
  2. When you try to automate things, CI and stuff like that, you need a command to do it, right?
  3. When you have it in $conf you cannot change it in admin and have to change the code again.

How to extend?

drush nocache command invokes hook_nocache() so feel free to implement your custom actions. If they're reusable please contribute.