Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internal Cache not reloaded on Reload #212

Closed
sfabriece opened this issue Jan 20, 2016 · 3 comments
Closed

Internal Cache not reloaded on Reload #212

sfabriece opened this issue Jan 20, 2016 · 3 comments

Comments

@sfabriece
Copy link

I have noticed that the internal 'caches' object is not being re-populated based on whether localStorage or whatever the underlying storage has. Put in other words, angular-cache is not picking up existing caches on startup.

@jmdobry
Copy link
Owner

jmdobry commented Jan 20, 2016

Only data gets reloaded, not the meta information associated with a cache. So you need to run the code that creates a cache every time your app loads, and the cache will possibly load any data that was previously saved under that cache's name

@ronaldheft
Copy link

I'm seeing the same thing due to #211. I was able to temporarily work around this problem by setting deleteOnExpire to none.

@jmdobry
Copy link
Owner

jmdobry commented Jan 22, 2016

Should be working better now: https://plnkr.co/edit/Cc1xT8Ra3PWXQvl2J9zs?p=preview

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants