Re: Discussion: Remove file statcache?

From: Date: Sun, 22 Dec 2024 22:30:10 +0000
Subject: Re: Discussion: Remove file statcache?
References: 1 2 3 4 5 6 7 8  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message


On 22 December 2024 20:32:47 GMT, Niels Dossche <[email protected]> wrote:
>All in all though, I'm not convinced by the parameter approach.
>I'd like a proper solution rather than some plaster.
>There are some options:
>1) Try to fix the stat cache.
>2) Put stat cache behind an ini knob.
>3) Get rid of the stat cache.
>
>All of these simplify the developer experience. Adding more configuration knobs or extra
>parameters add complexity.
>I'd like to see more simplification.


I disagree that number 2 simplifies anything. Users who get tripped up by the subtle behaviour of
the cache won't know to turn it off; users who know they can get advantage from it will have to
make sure it is turned on, and not conflicting with code that wants it turned off; and libraries
will have to account for both modes, or add boilerplate.

I would probably vote for abolishing it completely, or replacing it with some form of *local*
setting (maybe *only* on SplFileInfo). I would probably vote against adding an ini setting.

Regards,
Rowan Tommins
[IMSoP]


Thread (25 messages)

« previous php.internals (#126171) next »