Re: Are objects cached twice (not symlinked) in lasttime and http ?
amb-Uxr6IM1mbv2TY6FTCsQk+9Bc4/[email protected] (Andrew M. Bishop) 07 Dec 2006 17:40:04 +0000
| Newsgroups | gmane.network.wwwoffle.user |
|---|---|
| Message-ID | <[email protected]> |
Micha <[email protected]> writes: > That's the basic question, No, the files in lasttime and http directories are not cached twice. Each one is a filesystem hardlink to the other one (like a symbolic link except that there is only one file that appears in two directory lists). You can see this by using 'ls -l', the second item is the link count which will be 1 for normal files and 2 for files that are harlinks from two places and for a directory it will be 2 more than the number of sub-directories. -rw-rw-r-- 2 www-data www-data 11774 Dec 7 05:45 D+5LWOEoZ3l9eNFVcsuIcLg ^ +---- The number of links The files in the prevtime* directory were linked to files in the http directory but if the URL is fetched again then it may become unlinked so that the version in prevtime* contains different data. You will not see this data from within WWWOFFLE because it always shows you the contents of the http (or ftp or https) directory and not the contents of the lasttime or prevtime directory. > and also, if they are named with the exactly same > key string, and if i can modify the way they are named (or stored), to > preserve some 'internal' file information, like the original file name on the > source server, in the cached file's name (or in a file header ?). > I'm talking about binaries like images or audio files, not text content. I don't understand this part of the question. The original URL can be found from the contents of the file that has the same name as the data but beginning with 'U' (e.g. 'U+5LWOEoZ3l9eNFVcsuIcLg' in the example above). -- Andrew. ---------------------------------------------------------------------- Andrew M. Bishop amb-Uxr6IM1mbv2TY6FTCsQk+9Bc4/[email protected] http://www.gedanken.demon.co.uk/ WWWOFFLE users page: http://www.gedanken.demon.co.uk/wwwoffle/version-2.9/user.html