-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ddev robo cache:disable|enable #705
base: main
Are you sure you want to change the base?
Conversation
@@ -71,4 +84,186 @@ public function __construct() { | |||
} | |||
} | |||
|
|||
/** | |||
* Helper to get settings.local.php file. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Put all these into a trait, let's say DevelopmentTrait
under robo-components
. We decided to keep RoboFile minimal.
// Clear Drupal cache. | ||
$this->taskExec('drush cr')->run(); | ||
|
||
$this->say("Drupal caching disabled."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We do some file manipulations only, I'd try to verify it programmatically if the changes are truly effective and this way, we could do some error handling. Like doing some HTTP requests and check the headers or try to retrieve the config bits via the API, then we could have a conditional branch where we explain what went wrong and set a non-zero exit code. Same for the other direction.
@amitaibu In order to address PR review suggestions I'd need a TB bump. |
Sure, Bump to 5h |
#605
Note: I tested locally and I am getting cache HIT/MISS according to appropriate new command.
TB: 3.4