-
-
Notifications
You must be signed in to change notification settings - Fork 156
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
Clear the dev cache in the script handler #1369
Conversation
Aren't these commands executed in the current environment anyway? Thus, if you do static::executeCommand('cache:clear --no-warmup', $event);
static::executeCommand('cache:clear --no-warmup --env=dev', $event); and you configured the |
Correct. That's your mistake then, isn't it? |
Not sure what you mean. This change is supposed to fix an issue that occurs, if you switch the environment, after a |
@fritzmg you mean we should use something like this? static::executeCommand('cache:clear --no-warmup --env=prod', $event);
static::executeCommand('cache:clear --no-warmup --env=dev', $event); |
Possibly. @Tastaturberuf mentioned in #1357, that apparently the Script Handler will always use |
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.
if we wanna clear both environments, then adding --env=prod
to the first call would certainly be correct.
I actually found the issue. We were using |
Shouldn't this be changed in Contao 4.4 as well? |
Thank you @Toflar. |
For some reason this is not working: Contents of
Contents of
Contents of
I noticed this after installing an extension, while having |
Fixes #1361