Skip to content

Allow clear:cache to clear all caches at once #26

@MoritzLost

Description

@MoritzLost

The clear:cache prompts for the name for the cache to clear and defaults to the pages cache. However, there's no way to just clear all caches at once. This would be great to have – for example, to clear all existing caches in a deployment script.

Beyond that, as far as I can tell, the command can only clear caches under cache/[domain]/. For example, kirby clear:cache pages clears the cache/[domain]/pages folder. Is it possible to have the command clear caches that live in the cache/ directory? The Twig plugin stores the compilation cache under cache/twig, but calling kirby clear:cache twig doesn't clear it out.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions