Changes between Initial Version and Version 1 of Disk Cache


Ignore:
Timestamp:
Jun 11, 2008 7:56:17 AM (16 years ago)
Author:
ben@meyerhome.net
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Disk Cache

    v1 v1  
     1Konqueror
     2
     3Cache is stored in "~/.kde/cache-katherline/http/[0-9a-z]/"
     4
     5The top level directories are the first letter in the host and is historical when processing a lot of files in one dir was harder.
     6
     7Each file is stored by itself.  So the file http://www.reddit.com/static/aupmod.png goes in: r/www.reddit.com_static_aupmod.png_2cd5ba49
     8Each file: "host"_"file"_"fullUrlHash"
     9
     10Each file contains the following (minus the text before each : so the first line is just '7')
     11{{{
     12Version: 7
     13url: http://www.reddit.com/static/aupmod.png
     14Creation date: 1213180806
     15Expire date: 1213765446
     16ETag: 1207334405.0-334
     17Last Modified: Fri, 04 Apr 2008 18:40:05 GMT
     18File: <all contents>
     19}}}
     20
     21In KDE 4 the file is gzip'd for 90% savings
     22Also r/www.reddit.com_static_aupmod.png_2cd5ba49_freq contains the number of times the url has been requested in a fashion that is not lock safe a has a bunch of problems.  Not something I would recomend copying
     23
     24A seperate application goes through cleaning the cache.
     25
     26A very simple system.