Sunday, 16 November 2014

!Cache management

Is anyone else finding that the new Cache feature does not seem to
expire its content?

I wondered a few weeks ago why the main harddrive on the Iyonix was
filling up more quickly than I thought it should. I found the Netsurf
cache was close to 10 GB in size. Netsurf was configured for a cache
maximum of 1 GB with expiry set to 10 days. Randomly checking
datestamps of some of the files in the cache showed them to be weeks
and even months old. I had been assuming that (a) old files would be
deleted after the configured expiry time and (b) if the cache size
approached the configured maximum size, then the older files would be
deleted anyway to keep the size under the limit. I deleted the whole
cache at the time, and it is well under 1 GB at the moment, although
checking a few random datestamps, there are certainly files going
back to early August, even with an expiry now set to 7 days.

I checked on the PandaBoard today and lo and behold, the cache
contained more than 8 GB of files. This machine was also configured
for a 1 GB max and 10 days expiry. I have now deleted and disabled
the cache on the PandaRO.

On all my machines I use recent versions of RISC OS 5.21, and recent
development versions of Netsurf.

Am I misunderstanding what the cache settings are?

--
Chris Johnson

No comments:

Post a Comment