On Thursday, September 5, 2013 3:33:54 PM UTC+3, Honza Bambas wrote: > 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-
Whatever the situation would be, B2G right now doesn't have any means for creating some free space, I think this whole issue should be dealt with in parallel with creating a file manager for that purpose. _______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g
