NoCache
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...
- 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.
- When you try to automate things, CI and stuff like that, you need a command to do it, right?
- When you have it in
$confyou 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.
