hyperoslo / Cache

:package: Nothing but Cache.
Other
2.96k stars 335 forks source link

iOS 18 Persistence when using greatestFiniteMagnitude #327

Closed mivico closed 2 months ago

mivico commented 2 months ago

I've been experimenting with this library for quite some time now and everything has always been great. I recently updated my phone to iOS 18 beta and it looks like nothing is being persisted anymore. When I load up the app on the iOS 17 simulator, everything works as expected but nothing is persisted on the real device on iOS 18 when using the .seconds(.greatestFiniteMagnitude) expiration. There may have been an undocumented change from Apple's side.

mivico commented 2 months ago

Closing this as it might be expected behaviour. It can be fixed by just using .never but feel free to reopen if you see this as a legitimate issue