The cached files aren't being removed after the stale duration is over!
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 25/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- dart, flutter
- Ambito
- mobile-dev
Direzione di ricerca
Riproduci il problema con Custom Cache Manager usando una durata di scadenza di tre minuti, quindi chiama getFileFromCache dopo che è trascorsa tale durata. Il lavoro è completato quando il file memorizzato nella cache viene rimosso o non viene più restituito dalla cache; il problema non indica alcun file sorgente o test da esaminare.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
🐛 The cached files aren't being removed after the stale duration is over!
With Custom Cache Manager, the stale duration isn't working! It's not removing the file after the stale duration is over. I had set the stale duration to 3 minutes, but the file was deleted even after more than 30 hours.
Expected behavior
The cached files are supposed to be deleted after the stale duration of the file is over. But, the file continues to remain in the cache ruining the whole structure.
Reproduction steps
Just cache a file with Custom Cache Manager, for DefaultCacheManager doesn't come with a stale duration option, and assign Stale Duration to anything, i assigned it 3 minutes to test it more efficiently. Then, I just invoked my function to see if the file is cached without displaying it, which I was doing with Cached_network_Image. I used the getFileFromCache function to get the file specifically and only from the cache, and it printed that the cached file exists, even after the day since is caching. Btw, remember I cached it for 3 minutes.
Configuration
Version: flutter_cache_manager: ^3.3.1
Platform:
- 📱 iOS
- 🤖 Android
- Lingua principale
- Dart
- Stelle
- 810
- Fork
- 510
- Merge medio
- 2g 2h
- PR unite (30g)
- 11
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Baseflow/flutter_cache_manager
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
Baseflow/flutter_cache_manager#450 · 9 commenti · 8 reazioni ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 30/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 48/100
Baseflow/flutter_cache_manager#507 · 1 commento ·
-
sqflite_android update Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 30/100
Baseflow/flutter_cache_manager#501 · 1 commento · 3 reazioni ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
Baseflow/flutter_cache_manager#500 · 1 commento · 3 reazioni ·
Tutte le issue di Baseflow/flutter_cache_manager
Issue simili
-
ui/ux
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
error Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
-
Bug Flutter User Feedbacks
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
getsentry/sentry-dart#4042 · 1 commento ·
-
team-infra
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100