question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cached data not persisted between app sessions

See original GitHub issue

I can not confirm this as a bug with MonkeyCache. However I am getting quite a few reports of users having to log in to the app after not using it for 1/2 days.

Users are considered logged in if they have a user token in the cache, and this seems to be missing after a period of the app not being used. The expireIn is set to one year.

This happens only on Android and there is no clear device or Android Api level it occurs on.

Has anyone else had this issue or an idea what could be going on? Its impossible to debug.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
pkhandelwal-cdlcommented, Apr 17, 2019

The Cache directories where MonkeyCache saves can be cleaned up at any time by the OS. Have you tried changing the base path of where the data is stored? See here https://github.com/jamesmontemagno/monkey-cache#persisting-data-longer

Read more comments on GitHub >

github_iconTop Results From Across the Web

Akavache not persisting cache data between app restarts
I deployed the app to the device. Launched it manually (so there's no wiping of data and preferences etc.). Data is cached (and...
Read more >
HTTP Session State Caching with Spring
This guide walks you through building a simple Spring Boot application using Spring Session backed by Apache Geode to manage HTTP Session state....
Read more >
Access data offline | Firestore - Firebase
To enable persistence, call the enablePersistence method. Cloud Firestore's cache isn't automatically cleared between sessions. Consequently, if your web app ...
Read more >
Advanced topics on caching in Apollo Client
You can persist and rehydrate the InMemoryCache from a storage provider like AsyncStorage or localStorage . To do so, use the apollo3-cache-persist library....
Read more >
Exceptions Where Some Data is Cached
“Persistent between sessions” means that even after the user closes the iOS app, the cache is still present, when they return and open...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found