Should b2g have a global cache directory? Android has a folder whom path is gived to an app via its Context (or what is the name of the interface). This folder content or individual files can be in any time deleted by the OS (android) when low on disk space. The data in it are considered volatile, so only used for caching.

Should we have some kind of this functionality too?

E.g. for the new http cache backend we use andoid's cache dir and thus we don't need any sophisticated eviction algorithm. It can make the code less complex and takes some of the resposibility off an app coder.


And in relation to "Low device storage (notifying the user)" thread - is there a way an app can say its data is critical (e.g. sms, email when removing mails from the server, contacts)? We could just delete the non-critical apps data when needed.

-hb-
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to