-
-
Notifications
You must be signed in to change notification settings - Fork 426
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
Store cache in $XDG_CACHE_HOM or ~/.cache #416
Comments
Please consider using Notice that /tmp may be unsuitable for caching on systems with multiple users. For example, run the cached_network_image example first as user A and then as user B on Ubuntu:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
On linux, /tmp is most of the time an in memory filesystem, wipe out after a reboot.
So for a long term cache, this does not work, unless you can specify a custom location.
I can't find out how to specify a said custom location. Where is the doc? How do you use FileSystem() or LocalFileSystem() (not really user friendly API)
You should be able to choose where the cache is stored, and a default location better be $XDG_CACHE_HOME if set or else $HOME/.cache on linux.
/tmp is for temporary file not cache
The text was updated successfully, but these errors were encountered: