Re: Rox's directory caching

Tony Houghton <[email protected]> Wed, 13 Aug 2008 14:54:15 +0100
Newsgroups gmane.comp.desktop.rox.devel
Message-ID <[email protected]>
On Wed, 13 Aug 2008 19:15:36 +1000
Lennon Cook <[email protected]> wrote:

> rox-filer currently caches the contents of directories, including MIME
> types, for a certain amount of time. This is presumably
> because MIME sniffing could take a while under certain conditions (eg,
> a network mount). Thing being, it causes some fairly common instances
> when you have to refresh to get expected behavior:

[Snip]

> I run into these things nearly every day. Are these really worth it for
> a bit of extra speed in some specific situations?

I guess a reasonable compromise would be to check mtime and/or size and
invalidate the cached reading if it's changed. And unmounting should
clear the cache for all items on the volume.

-- 
TH * http://www.realh.co.uk

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/