This repository was archived by the owner on Nov 16, 2025. It is now read-only.
Commit cc79333
committed
fix: prevent UserDefaults 4MB limit crash by not caching full Claude log data
- Remove caching of full daily usage data in UserDefaults (was causing crashes)
- Rely on permanent cache for individual file caching instead
- Clear any existing corrupted cache data on invalidation
- This fixes the "Attempting to store >= 4194304 bytes" error
The permanent cache system already handles individual file caching efficiently,
so there's no need to also cache the aggregated daily usage in UserDefaults.1 parent 46f24d7 commit cc79333
1 file changed
+13
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
61 | 59 | | |
62 | 60 | | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
69 | 64 | | |
70 | 65 | | |
71 | 66 | | |
| |||
275 | 270 | | |
276 | 271 | | |
277 | 272 | | |
278 | | - | |
| 273 | + | |
| 274 | + | |
279 | 275 | | |
280 | 276 | | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
281 | 280 | | |
282 | 281 | | |
283 | 282 | | |
284 | 283 | | |
285 | | - | |
| 284 | + | |
| 285 | + | |
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
| |||
0 commit comments