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

Cache lifetime? #58

Open
dosomder opened this issue Nov 6, 2019 · 4 comments
Open

Cache lifetime? #58

dosomder opened this issue Nov 6, 2019 · 4 comments

Comments

@dosomder
Copy link

dosomder commented Nov 6, 2019

First of all, thanks for actively maintaining this repo and for providing examples for all frameworks 👍 . This is really great.

I could not find what the lifetime of the image cache is? Is it unlimited? Is there a way to set it? Is there a way to clear the whole cache?

@triniwiz
Copy link
Owner

triniwiz commented Nov 6, 2019

There is .clear() a static method

@CarissaHurt
Copy link

@triniwiz Currently I am unable to get the .clear() function to properly clear the cache.

@triniwiz
Copy link
Owner

triniwiz commented Jan 3, 2020

@CarissaHurt any error ?

@CarissaHurt
Copy link

@triniwiz There use to be an error on Android, however after upgrading to the most recent version, I do not get the error anymore. I believe the version we upgraded from was NS 6.1 -> 6.3.

Currently ts throws a warning for the .clear() function because it requests to have a src passed into the function, however after further research into the plugin code, it seems unnecessary.

To test I am using an iPhone simulator (exact version is iPhone 7 13.3). I get the saved cache src and follow it in my finder to view the folder the photos are being held in. Then I use the clear function, however all the photos are still held in that location. I could be missing something, any thoughts?

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

No branches or pull requests

3 participants