21
Clear cache CLI command
Source: directus/directus#18815 · opened by @Dominic-Marcelino
Summary
Before [v9.25.2]( directus used to clear the cache on startup. This has changed for better support in horizontal scaling
As in some Environments it still makes sense to clear the automatically on startup or after deployment I'd suggest to add a CLI command that can be run in CI.
_I know that there's a dedicated endpoint but a command would be easier to add it to a CI/CD pipeline._
Basic Example
_No response_
Motivation
Clear the cache after each deployment.
Detailed Design
Add a new command to clear the cache:
'npx directus cache clear
Requirements List
Must Have:
• CLI command
Drawbacks
n.A
Alternatives
n.A
Adoption Strategy
n.A
Unresolved Questions
_No response_
Before [v9.25.2]( directus used to clear the cache on startup. This has changed for better support in horizontal scaling
As in some Environments it still makes sense to clear the automatically on startup or after deployment I'd suggest to add a CLI command that can be run in CI.
_I know that there's a dedicated endpoint but a command would be easier to add it to a CI/CD pipeline._
Basic Example
_No response_
Motivation
Clear the cache after each deployment.
Detailed Design
Add a new command to clear the cache:
'npx directus cache clear
Requirements List
Must Have:
• CLI command
Drawbacks
n.A
Alternatives
n.A
Adoption Strategy
n.A
Unresolved Questions
_No response_
No pledges yet. Be the first to back this.
Comments
Similar requests
Allow extensions to access the configured directus cache
27 votes · 0 comments
`CACHE_ENABLED` should not affect `CACHE_CONTROL_S_MAXAGE`
1 vote · 0 comments
SDK: Provide a way to disable the cache
3 votes · 0 comments
CLI command to clean/reset system collections
3 votes · 0 comments
Cache only for specific items
2 votes · 0 comments
No comments yet.