Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:115961 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 86438 invoked from network); 6 Sep 2021 11:24:01 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 6 Sep 2021 11:24:01 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id E6D9918053A for ; Mon, 6 Sep 2021 05:01:12 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-ot1-f52.google.com (mail-ot1-f52.google.com [209.85.210.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 6 Sep 2021 05:01:12 -0700 (PDT) Received: by mail-ot1-f52.google.com with SMTP id x10-20020a056830408a00b004f26cead745so8488907ott.10 for ; Mon, 06 Sep 2021 05:01:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ATHeaQqc+GQk82JujJcT7PUA0/5o6SoExebd8yvZ6G8=; b=qAniw13983CW8HU5/JNrBDEBPfZymfrqG+OR6wcNVrfaOag6XsnikUCuUL4w32xZj2 XtfMMElWC783eye1Bre3dZX3cBQZ14KeqzvC4rWLPCJBn7FKvlGOAWKdjixw4MMQiAA4 vwSLcBogElAg8oFVFpwgJyQT21ha8+2bu8HADr4+85Z01yTKsTBb6I3T8Pj2E4L43M8T mTuDlzNY9iTR5/HhatwS8w4r8uINX13os/x/l3/GgWnNupNSOEjwgYq2aWOw2flcte2E 510lnSIkezXzVVCoRFs7kZKtz3DsjU4ySlDd6PzWZXrt/uGF1wX8c+64MuMjunhx84vi +gtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ATHeaQqc+GQk82JujJcT7PUA0/5o6SoExebd8yvZ6G8=; b=DCRPpDpOSaOvlG1uoXhuOeTaMSl5aeJ8fFnbM+KdXvLh1I/2W2Ism6SaBeEZ9mKEl+ iaMKIy9roYiLV21IYy//MfmEjsnGRx/V4vst8svNh00IDU+n4D9Jr2ZzpPNTCbHslQFb 0MpsuXX/nlThDL+2Ilih7+TlNE6gxLAC2QJBj7s3ciM1Yuokub1KUYl+8D7WOLIaQj8x h57QBKm8LeGjOi0o992/h5Pr6bU7hm/E/Tr3vPR1SuYR8EeSWs3JzKb7LXICfgbChV79 BHHwz9RnfIxSAjsw33RMIazx9R/gHn/ubtZ4l1mF8pBrjILhG4A0WQ79BabI995ry4tm ta/A== X-Gm-Message-State: AOAM532CGe8IHsfmyNHpUo4zT1Vs8dy5G88qAYQPNuj6fNyp87KEaRwU tuGZTHUwFISi1gQ73lwUcw34Iyh3ejIjx92DLY8= X-Google-Smtp-Source: ABdhPJwHfGb0wQl8RFeLe4oJl8tt/xxY1FCGmg5LDXrklWV3Qjufvi6EheFXGmIs6Ke0+QtoX3YY/cYl8InBVHJWdgs= X-Received: by 2002:a9d:4111:: with SMTP id o17mr10159131ote.355.1630929669012; Mon, 06 Sep 2021 05:01:09 -0700 (PDT) MIME-Version: 1.0 References: <0A048A30-444F-4DB0-A79C-9EA9BD07B1EC@cschneid.com> <569E3A48-E3F5-46FA-BA08-D2493CE4FD33@cschneid.com> <9B6A493C-DBA6-4CF0-9AE2-DAA0A700A7D2@cschneid.com> In-Reply-To: Date: Mon, 6 Sep 2021 19:00:57 +0700 Message-ID: To: Benjamin Eberlei Cc: Hans Henrik Bergan , PHP internals Content-Type: multipart/alternative; boundary="0000000000009340cd05cb5267c7" Subject: Re: [PHP-DEV] Adding a way to disable the stat cache From: pierre.php@gmail.com (Pierre Joye) --0000000000009340cd05cb5267c7 Content-Type: text/plain; charset="UTF-8" On Mon, Sep 6, 2021, 6:14 PM Benjamin Eberlei wrote: > On Fri, Sep 3, 2021 at 11:51 PM Hans Henrik Bergan > 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. 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). --0000000000009340cd05cb5267c7--