Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81608 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 70608 invoked from network); 2 Feb 2015 16:49:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Feb 2015 16:49:47 -0000 Authentication-Results: pb1.pair.com header.from=rasmus@lerdorf.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=rasmus@lerdorf.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain lerdorf.com designates 209.85.192.47 as permitted sender) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 209.85.192.47 mail-qg0-f47.google.com Received: from [209.85.192.47] ([209.85.192.47:65309] helo=mail-qg0-f47.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 48/97-34915-AAAAFC45 for ; Mon, 02 Feb 2015 11:49:47 -0500 Received: by mail-qg0-f47.google.com with SMTP id z60so48298545qgd.6 for ; Mon, 02 Feb 2015 08:49:44 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type; bh=IZe9H5JGFjoX/GQWLHFXC48tQ7WDSXtjbRrGSRD2LWU=; b=lzAwq5/uVp195Ptf+pZEo1QoUcHeU1IdaJML8ksMEMJqdoukI0CvDdLaMyuTTKlplg vRXwbwDNOt+xU+1LQOs2iSttaLSYCIp+XNdQabWhNuiiWy/pHxcYiRRnLJOx9gCQFmM7 OtIlWk8dgJ0mRF/NvJh0APmZBy93c/2HcLB5Hcp7BdLkRrqTMMF8WN5EnuS5zdDoKMIF eNyVL+6LjWikrJT2gL7wuHoquTOhBfj1wcN6Ts5AyKwszblViKH2LP+7pkdv/rYMWLBE d3IB0wqBTzBWeYcTWXTtISnLHt95txvPI/Wj78plY1kkdFS8snIFDM2uY3f4IaXDB1PR rhdA== X-Gm-Message-State: ALoCoQmhOmz9t4r7TZcl/BrBWxFvRvi2TWOf3MIEZIH3JvZqKunXKbHcYGJ4gWtzPYwUQHQ4V47g X-Received: by 10.140.105.201 with SMTP id c67mr38769684qgf.54.1422895784739; Mon, 02 Feb 2015 08:49:44 -0800 (PST) Received: from [192.168.200.14] (c-50-131-44-225.hsd1.ca.comcast.net. [50.131.44.225]) by mx.google.com with ESMTPSA id e2sm18737717qaf.49.2015.02.02.08.49.42 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 02 Feb 2015 08:49:42 -0800 (PST) Message-ID: <54CFAAA5.6050700@lerdorf.com> Date: Mon, 02 Feb 2015 08:49:41 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: francois@tekwire.net, internals@lists.php.net References: <008b01d03f06$bc8e9940$35abcbc0$@tekwire.net> In-Reply-To: <008b01d03f06$bc8e9940$35abcbc0$@tekwire.net> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="to3Ji41vPmxrrDOWXbXCQDBxa9t8wlvJ8" Subject: Re: [PHP-DEV] [VOTE] Add is_cacheable() stream-wrapper operation From: rasmus@lerdorf.com (Rasmus Lerdorf) --to3Ji41vPmxrrDOWXbXCQDBxa9t8wlvJ8 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 02/02/2015 08:38 AM, Fran=E7ois 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 = URI > is cacheable or not. 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= =2E -Rasmus --to3Ji41vPmxrrDOWXbXCQDBxa9t8wlvJ8 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlTPqqUACgkQlxayKTuqOuARJACaAxJau5Pr/AlZXqKGH69eyKsw Xd0Anj0F+VGO3f3g+oEy/p2rkWgPB40c =TGYF -----END PGP SIGNATURE----- --to3Ji41vPmxrrDOWXbXCQDBxa9t8wlvJ8--