Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81677 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 10827 invoked from network); 3 Feb 2015 03:35:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Feb 2015 03:35:37 -0000 Authentication-Results: pb1.pair.com smtp.mail=davidkmuir@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=davidkmuir@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.45 as permitted sender) X-PHP-List-Original-Sender: davidkmuir@gmail.com X-Host-Fingerprint: 209.85.220.45 mail-pa0-f45.google.com Received: from [209.85.220.45] ([209.85.220.45:52072] helo=mail-pa0-f45.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 30/00-10811-90240D45 for ; Mon, 02 Feb 2015 22:35:37 -0500 Received: by mail-pa0-f45.google.com with SMTP id et14so90570646pad.4 for ; Mon, 02 Feb 2015 19:35:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:mime-version:in-reply-to:content-type :content-transfer-encoding:message-id:cc:from:subject:date:to; bh=Sxiw/lvn4JRSw7gBq8VgeeCwIZ3buDJU2ga6ACnpa1A=; b=WTPm6dxnUb+HSma0wbr36VgMYqtksDN3cH1+Ivq6+nvpy1o4b9z5DclOcs0hn4FcE0 Vq8ip7u+NhYr2TpAFNi1oIkoi9RnZQeKUD7S081CZtC9PnEmCdUuURK99emiEzWtSsZK Q1JRsK3P7gR3oecaxOv9OenX1hDffUODD5Abbv6fOhqH5H6192MXB6bfWdRPxTS2OE0/ PCN8MsUySMAO1LCLxNYj20ofpDM2dQ4mh2Ze6BeAYcMrUHdFB7LRZT6V/dsRlilk3FwK SK0gp33qLm6KKBtbNdwmfQAY2DE1BZaU74hYnFrXVx8y/1CYzYg5dOZneD0FdMH5Ix9z EXXA== X-Received: by 10.70.90.144 with SMTP id bw16mr33699150pdb.149.1422934534272; Mon, 02 Feb 2015 19:35:34 -0800 (PST) Received: from [192.168.1.15] (tmwpho1.lnk.telstra.net. [110.142.207.74]) by mx.google.com with ESMTPSA id c9sm494818pdm.51.2015.02.02.19.35.33 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 02 Feb 2015 19:35:33 -0800 (PST) References: <008b01d03f06$bc8e9940$35abcbc0$@tekwire.net> <54CFAAA5.6050700@lerdorf.com> Mime-Version: 1.0 (1.0) In-Reply-To: <54CFAAA5.6050700@lerdorf.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Message-ID: <24F6AFBF-11C0-48C2-A923-87A79A475792@gmail.com> Cc: "francois@tekwire.net" , "internals@lists.php.net" X-Mailer: iPhone Mail (11D257) Date: Tue, 3 Feb 2015 14:35:27 +1100 To: Rasmus Lerdorf Subject: Re: [PHP-DEV] [VOTE] Add is_cacheable() stream-wrapper operation From: davidkmuir@gmail.com (David Muir) > On 3 Feb 2015, at 3:49 am, Rasmus Lerdorf wrote: >=20 >> On 02/02/2015 08:38 AM, Fran=C3=A7ois Laupretre wrote: >> Hi, >>=20 >> Opening the vote for : >>=20 >> https://wiki.php.net/rfc/streams-is-cacheable >>=20 >> This RFC proposes a generic way for opcode caches to decide if a given UR= I >> is cacheable or not. >=20 > Doesn't this imply that "path" is the one true cache key? There are some > issues with that which we will have to address at some point. For > example, when running fpm chrooted you need more than the path. We'll > likely need a more APC-like option here to use the device+inode for the > key. It seems like a generic mechanism like you are proposing needs to > take this into account and provide some mechanism that tells the opcode > cache how to determine uniqueness. Perhaps that is simply encoded into > the path parameter, but then maybe it should have a more appropriate name.= >=20 > -Rasmus >=20 >=20 Don't we already have this problem with chrooted FPM? I haven't tested it mo= re recently, but last time I tried, opcache would fail to invalidate the cac= he after updating the file. Worked fine with a non-chroot environment. Not s= ure if this is related to the issues you mean here...=