[webkit-gtk] How to clear the cache?

Carlos Garcia Campos cgarcia at igalia.com
Sun Aug 24 23:34:24 PDT 2014


El lun, 14-07-2014 a las 09:39 -0700, Niranjan Rao escribió:
> Carlos/Sergio
> 
> Thanks for the answers.
> 
> Can you please let me know how to set cache size. Quick check on 
> WebKitWebContext did not show any methods that can achieve this.

The cache size is set automatically by WebKit depending on the cache
model and the space available in the partition where the disk cache is.

> Regards,
> 
> Niranjan
> 
> On 07/14/2014 01:37 AM, Sergio Villar Senin wrote:
> > On 11/07/14 19:09, Niranjan Rao wrote:
> >
> >> Because of the  way we use webkit, current cache size has grown to 60GB+
> >> and growing. I would like to clear the cache for the items that are
> >> older than seven days.
> > There is currently no way to do that. Items in cache are removed from
> > the cache when they become obsolete or when they're expunged due to size
> > limit restrictions. We use a LRU algorithm to remove the last recently
> > used resources first.
> >
> > Removing items older than X days is a mistake in general because you
> > might be removing items that are commonly used and do not change regularly.
> >
> >> Another thing I am confused about is if a site says cache this file for
> >> two days, after two days when we refresh the file, does the old file
> >> gets deleted or its still on the disk?
> > They're deleted from disk.
> >
> > BR
> > _______________________________________________
> > webkit-gtk mailing list
> > webkit-gtk at lists.webkit.org
> > https://lists.webkit.org/mailman/listinfo/webkit-gtk
> 
> _______________________________________________
> webkit-gtk mailing list
> webkit-gtk at lists.webkit.org
> https://lists.webkit.org/mailman/listinfo/webkit-gtk
> 

-- 
Carlos Garcia Campos
http://pgp.rediris.es:11371/pks/lookup?op=get&search=0xF3D322D0EC4582C3
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <https://lists.webkit.org/pipermail/webkit-gtk/attachments/20140825/78aeb6c9/attachment.sig>


More information about the webkit-gtk mailing list