mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[GH-ISSUE #412] expire cached audio files #267
Labels
No labels
A-Alsa
SpotifyAPI
Tokio 1.0
audio
bug
can't reproduce
compilation
dependencies
duplicate
enhancement
good first issue
help wanted
high priority
imported
imported
invalid
new api
pull-request
question
reverse engineering
wiki
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/librespot#267
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @azrdev on GitHub (Dec 14, 2019).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/412
As I read
dev/core/src/cache.rsit seems thecache_pathis filled with audio files and read from, but never expired, so eventually the disk will run full.I can manually expire old cache entries that have not been used in a time, e.g. with a daily cronjob running
find $CACHE_DIR -type f -atime +30 -delete, but maybe you consider pruning the cache in scope?@sashahilton00 commented on GitHub (Dec 17, 2019):
I seem to remember there was an older issue that looked at this. There were some nuances involved, though I can't find it right now. Will look again later and try to link to it.
EDIT: It might be #34. There was discussion about the work required in there, but equally we might be able to use a crate like https://crates.io/crates/rocket-file-cache to implement a size based cache.