mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 15:39:16 +02:00
Fix #1086: Added safeguard to ensure local uploads are never purged from cache
This commit is contained in:
parent
29c58d1ce5
commit
49a8b2babf
5 changed files with 30 additions and 3 deletions
|
@ -50,6 +50,7 @@ def clean_music_cache():
|
|||
)
|
||||
.local(False)
|
||||
.exclude(audio_file="")
|
||||
.filter(Q(source__startswith="http://") | Q(source__startswith="https://"))
|
||||
.only("audio_file", "id")
|
||||
.order_by("id")
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue