Welcome! Log In Create A New Profile

Advanced

Re: Inner workings of nginx cache manager

Maxim Dounin
November 30, 2018 08:00AM
Hello!

On Fri, Nov 30, 2018 at 01:26:27PM +0100, Stefan Safar wrote:

> So the process/thread that scans through the files on disk need to read the
> all the file headers to find the KEY for the all cache files to keep the
> information in memory before it starts deleting anything, is that correct?

No, cache loader only scans which files are present in the cache
(and their sizes), it doesn't try to read them. Raw keys as
stored in cache file headers are only needed for a safety check to
make sure there are no MD5 collissions between different keys, and
this check only happens when returning an actual response from the
cache.

--
Maxim Dounin
http://mdounin.ru/
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Inner workings of nginx cache manager

Stefan Safar November 29, 2018 09:24AM

Re: Inner workings of nginx cache manager

Maxim Dounin November 29, 2018 09:52AM

Re: Inner workings of nginx cache manager

Stefan Safar November 30, 2018 07:28AM

Re: Inner workings of nginx cache manager

Maxim Dounin November 30, 2018 08:00AM

Re: Inner workings of nginx cache manager

Stefan Safar November 30, 2018 08:06AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 178
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready