miguelfreitas / twister-html

twister HTML + Javascript User Interface
MIT License
229 stars 138 forks source link

persistent storage maximum size reached #339

Open slr opened 8 years ago

slr commented 8 years ago

I have few account profiles and 1216 profiles and 1368 avatars of other twisters stored in localStorage currently. few days ago I've reached situation when new mentions can't be stored because of

NS_ERROR_DOM_QUOTA_REACHED: Persistent storage maximum size reached

so I got to say that we need to remake scheme of storing and cleaning of data in storage.

slr commented 8 years ago

in c07e628 we have cleaning up of localStorage via removing of old avatars and profiles, it happens when we open home page. currently the time is 24 hours to consider them as old but we need to clarify this.

slr commented 8 years ago

on first run of cleanupStorage() I got:

cleaning of storage is completed for 0.3619999885559082s 1356 cached avatars was too old, deleted 1202 cached profiles was too old, deleted there was 2621 items in total, now 63