FeatureFuel
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_

No pledges yet. Be the first to back this.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests