Re: Adding a way to disable the stat cache

From: Date: Mon, 06 Sep 2021 12:05:31 +0000
Subject: Re: Adding a way to disable the stat cache
References: 1 2 3 4 5 6 7 8 9 10 11 12 13  Groups: php.internals 
Request: Send a blank email to internals+get-115962@lists.php.net to get a copy of this message
On 06.09.2021 at 14:00, Pierre Joye wrote: > On Mon, Sep 6, 2021, 6:14 PM Benjamin Eberlei <kontakt@beberlei.de> wrote: > >> On Fri, Sep 3, 2021 at 11:51 PM Hans Henrik Bergan <divinity76@gmail.com> >> wrote: >> >> The stat cache does not necessarily solve this issues though, only in very >> limited cases where you work with the *same* file over and over again. The >> stat cache only ever has exactly one entry, the *last* file that was >> accessed. So if you work with many diferent files the stat cache does not >> do what you would expect, to store the information of all these files. It >> overwrites the cache with a new file entry when its not the same file as >> currently stored. > > that is what happened in TS mode. For every part of a path, every single > time a path is used (like source files in a common root path). I did not > check it lately but I suppose it still does it. This is the realpath cache, though. > Luckily it should not be an > issue anymore as most should be using nts as well and the opcache, maybe > even wincache too which implements a smart cache with events (on change).. FWIW, WinCache has been discontinued[1]. [1] <https://pecl.php.net/package/WinCache> Christoph

« previous php.internals (#115962) next »