← Back to team overview

ubuntu-phone team mailing list archive

Re: webapps and automated cache expiration

 

On Mon, 2015-02-23 at 17:56 +0100, Oliver Grawert wrote:

> Am Montag, den 23.02.2015, 10:40 -0600 schrieb Ted Gould:
> > > should we perhaps have some auto expiration of cache files for (web)apps
> > > here ? 
> > 
> > In general, I think we should allow apps to maintain their own cache.
> > But perhaps we could delete the cache directories of apps that haven't
> > been used in say a week? If we're not running an app, it won't have a
> > chance to clean up on its own. This should be pretty easy to implement
> > if there's agreement that we want it, we're already tracking app
> > usage, just about adding a job to check the usage and clean up.
>  
> well, the biggest caches i see here are from apps using the
> webapp-container ... the browser itself also has ~200M cache in
> there ... i think the browser and webapp-container both should have some
> auto expiration mechanism that deletes data if it is ... say ... older
> than 4 weeks ...



Sure, but I think there are two issues there. The application cleaning
up for itself, and the app not getting run so it can't clean up for
itself. Webapps are unique in that we have some control of the
application cleaning itself up, so we should fix that. But the second
issue exists irregardless, I'm suggesting we should do something about
that issue as well. I figure there are a fair amount of apps that people
try once and then forget they have installed.


> oh, and there is a 65M big zeitgeist dir too that i would expect to
> clean up itself after some time ...


ZG does compress events over time. Not sure if that's tunable to
particular DB sizes though, we could probably reduce it as we don't need
as long of a history.

Ted


References