vc=59: per-store cache caps + TTL + Clear all caches
User-facing cache controls Cobb specifically asked for. Each SharedPreferences-backed store now reads its cap from Settings instead of a hardcoded constant: - History watches: 50 / 200 / 1000 / 10k / Unlimited (was fixed 50) - History searches: 50 / 200 / 1000 / 10k / Unlimited (was fixed 20) - Resume positions: same options (was fixed 500) - Search results cache: same options (was fixed 30 queries) Each store also enforces a hard ceiling (100k for History + Resume, 5k for SearchCache) so Unlimited doesn't OOM SP on a hostile import. New global Cache TTL: 1 day / 7 days / 30 days / 1 year / Forever. Drops subs feed + search cache entries older than the cutoff on every read. Defaults to 30 days. Settings UI — new 'Cache & history limits' section inside the existing Local cache block with one chip-row per cap + the TTL chip-row + a 'Clear all caches' button that nukes FeedCache, SearchCache, ResumePositions, History.watches, History.searches on one tap.
This commit is contained in:
parent
7fff36c5e3
commit
2e75938f4e
7 changed files with 296 additions and 29 deletions
|
|
@ -55,6 +55,6 @@ const val NEWPIPE_APPLICATION_ID_NEW = "net.newpipe.app"
|
|||
// vc=19 / 0.1.0-AE — rust pipeline cutover. Extraction via
|
||||
// strawcore-core (Sulkta-Coop/strawcore) via the UniFFI wrapper; no
|
||||
// NewPipeExtractor in the runtime path.
|
||||
const val STRAW_VERSION_CODE = 58
|
||||
const val STRAW_VERSION_NAME = "0.1.0-BR"
|
||||
const val STRAW_VERSION_CODE = 59
|
||||
const val STRAW_VERSION_NAME = "0.1.0-BS"
|
||||
const val STRAW_APPLICATION_ID = "com.sulkta.straw"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue