open-sw / pkg-cacher

This is a transparent cache for Debian and RedHat packages (.deb and .rpm). It is based on apt-cacher available on Debian. It has been enhanced to handle RedHat repositories and files whose names are the same but the contents are different.
15 stars 12 forks source link

not actually caching, most of the time #42

Open brianjmurrell opened 5 years ago

brianjmurrell commented 5 years ago

It would seem that pkg-cacher is not actually caching a lot of the time. From my access.log:

Thu May  9 11:00:10 2019|18386|2001:470:1d:6f8:b12f:e840:c6a9:8480|MISS|94176|libnfs-1.11.0-3.fc30.x86_64.rpm
Sat May 18 19:18:51 2019|12697|fd31:aeb1:48df:0:3b14:e643:83d8:7017|MISS|94176|libnfs-1.11.0-3.fc30.x86_64.rpm
Sun May 19 01:13:23 2019|9186|2001:470:1d:6f8:cb0f:b010:9798:8e30|HIT|94176|libnfs-1.11.0-3.fc30.x86_64.rpm
Mon May 27 09:14:40 2019|13341|2001:470:1d:6f8:cb0f:b010:9798:8e30|MISS|94176|libnfs-1.11.0-3.fc30.x86_64.rpm
Tue May 28 23:00:55 2019|16856|2001:470:1d:6f8:f570:6fa7:eb48:1de7|MISS|94176|libnfs-1.11.0-3.fc30.x86_64.rpm

So there was one HIT, 1 day after a MISS but much longer than 1 day and the same file does not remain cached.

But also, the last two MISSes as you can see, were not very far apart either.