Thursday, 5 June 2014

Re: Persistant disc cache

On 5 Jun 2014, Vincent Sanders <vince@netsurf-browser.org> wrote:
> On Thu, Jun 05, 2014 at 08:34:08PM +0000, Tony Moore wrote:

[snip]

> > Does that mean disc_cache_size:1073741824 ?
>
> yes thats the default setting,

Thanks.

> as usual if the setting is the default value it will not appear in the
> user Choices file.

After adding disc_cache_size:1073741824 to the Choices file, then
starting and quitting NetSurf, the line persists in the Choices file.
This led me to think that the default value, in bytes, was not correct.

> > The disc cache now seems to be named 'Misc'? Is there any way of
> > moving it out of !Scrap?
>
> I have no idea to what you are referring,

Previous versions of NetSurf create a directory www.NetSurf.Cache in
Scrap. NetSurf #1956 creates www.NetSurf.Misc , but not Cache. I assumed
that 'Misc' had replaced 'Cache'. If not, what is 'Misc'?

> as I said in the previous mail we are using !Cache (shipped in the
> !Boot of the CI builds ready for merge) to store this persistent data.

So the data should be stored in Resources.!Cache.Caches ? Using RO 6.20
Caches contains Single.MimeMan.MimeBase and Single.MimeMan.PluginMime.
Both of these files are in SQLite format, but their datestamps have not
changed since installing NS #1956 several hours ago.

I can't see where cached data is being stored and, since the times for
loading, and re-loading a complex page, after quitting and re-starting
NS, are not noticably different, I wonder if the disc cache is working.
How can I tell?

> This is because !Scrap is for transient data and many users do not
> store it on persistent storage. The cache must be persistent between
> runs of the browser to be useful.

Some users prefer not to store large persistent data in !Boot, eg the
default location for Newsdir is in Resouces, but it can be re-located to
the hard drive, outside !Boot.

Tony

No comments:

Post a Comment