Skip to content
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

Cannot clear cache.container to invalidate container definition #5300

Closed
mglaman opened this issue Nov 7, 2022 · 2 comments
Closed

Cannot clear cache.container to invalidate container definition #5300

mglaman opened this issue Nov 7, 2022 · 2 comments

Comments

@mglaman
Copy link
Contributor

mglaman commented Nov 7, 2022

Describe the bug
I wanted to invalidate the container cache quickly and tried cc bin but it failed, possible because it's only defined in the bootstrap container

To Reproduce
Run drush cc bin cache.container

Expected behavior
Container cache destroyed and gets rebuilt

Actual behavior

You have requested a non-existent service "cache.container". Did you mean this: "cache.config"? 

Workaround

drush sql:query "TRUNCATE cache_container;"

System Configuration

Q A
Drush version? 10.6.2
Drupal version? 9.4.8
PHP version 7.4
OS? Mac/Linux

Additional information
Add any other context about the problem here.

@weitzman
Copy link
Member

weitzman commented Nov 8, 2022

You can see the list of supported bins by omitting the last argument - drush cc bin. That list comes from Drupal's Cache::getBins().

I think we need to create another cache type for this. I've done that in #5304

@weitzman weitzman closed this as completed Nov 8, 2022
@mglaman
Copy link
Contributor Author

mglaman commented Nov 8, 2022

You're amazing, thank you! I figured it'd need to be a pseudo bin since it only exists in the bootstrap container definition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants