Skip to content

Cache pruning #2786

@aspasia-patron

Description

@aspasia-patron

yazi --debug output

Version: 25.4.8

Please describe the problem you're trying to solve

There's no clean way of pruning yazi's cache directory. While limiting cache size is an option, deleted image previews will evict old yet existing previews, thus making yazi experience slower.

Would you be willing to contribute this feature?

  • Yes, I'll give it a shot

Describe the solution you'd like

Yazi should track file updates and prune preview cache.

Additional context

No response

Checklist

  • I have searched the existing issues/discussions
  • The latest nightly build doesn't already have this feature

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions