Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:103481 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 51856 invoked from network); 23 Nov 2018 13:46:35 -0000 Received: from unknown (HELO mail-it1-f180.google.com) (209.85.166.180) by pb1.pair.com with SMTP; 23 Nov 2018 13:46:35 -0000 Received: by mail-it1-f180.google.com with SMTP id z7so124020iti.0 for ; Fri, 23 Nov 2018 02:09:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ZkmiELHV8Nq1p1F1Re6zUQ/cq7qp5ysT04+1x0o9Tpg=; b=X5vDLOqRTjbL0x9M3S+ipot2hwSz1I5+eARrZqzdV1HLAreTH5MEUhj3k+7viYFzaw gfmczdv3WIXMuv7Z7XhOnYz/rYm5nc40l0gFS7T30JhhMCVZ+gnVqHnWnxVUwO4a+D+d z1guYnZgGcaa4j8qawv9sR+8fZmH5a9T2xrQmQL60ebrOqp9usF5geCIwO18VGcu+Wd0 Ud2YmYeE+MiXFDZfjG9NE3ayhrehNVA25ns2TKkoMJcDVqU4dC2C7iNPPCHbOWNhL4U8 VVSTMliwbBDXuG0UfRBlRC1ofs8hWhyvepV2DmVwfyFf4H1t/fuziyxBznOcnQO8xGfi hK/w== 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=ZkmiELHV8Nq1p1F1Re6zUQ/cq7qp5ysT04+1x0o9Tpg=; b=Y/ALJwDUhG3V8B4+4OP1co/SRzZZdF5uPZYBE3eYNJ2WJRZs/1Xb4nhCVlA7V//Reu kchYMdgTnEudChcBnUrbxI3oQ36LHt8fXzEmCPE7cl8MaGBSxgWyPfqAVlnj1GX+1sqV yZ5PAWBdVhAaj21oqPW5MEp/2ZAywRUFnDfoRlOGT47apeX8R4ible5fXnDFfezXDw1B awR9PaOe/pN/2BJYg+cTXH2vfCs62IAd91X5uoDBtqabB/t8LhLTriDzcraCSX2AwhIK 3fwGf+9qIP/d/se5bfiv+lG51fNAxmJ5BbPvOFN9tzwSfh/80lBxlC0nN5xaJ/UBsJBQ Kqxg== X-Gm-Message-State: AGRZ1gIFeFttaQswvZF2lqdr/fSP9InZIJXIVsqpvszZPxV+UZRXvLHI eGPqu2MjXS9bUzcn/DRURlbovmvOiRB5Od7x7yE= X-Google-Smtp-Source: AFSGD/UulR+YgPy0EAUBCG51SMgQCjPqAqPYBjcfb8J7E9wjKZCBXMSpfSToZNwyt0lcI4+96ybILFMVh4zQnAfmrb4= X-Received: by 2002:a24:5284:: with SMTP id d126mr12618081itb.110.1542967750764; Fri, 23 Nov 2018 02:09:10 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Fri, 23 Nov 2018 11:08:53 +0100 Message-ID: To: Dmitry Stogov Cc: PHP internals Content-Type: multipart/alternative; boundary="000000000000af2cb9057b522ccb" Subject: Re: [PHP-DEV] [mini-RFC] Disable opcache per script using "declare(cache=0)" From: nikita.ppv@gmail.com (Nikita Popov) --000000000000af2cb9057b522ccb Content-Type: text/plain; charset="UTF-8" On Fri, Nov 23, 2018 at 11:04 AM Dmitry Stogov wrote: > Hi internals, > > > I like to propose an ability to disable opcache caching per script, using > declare(cache=0) at start of PHP file. > > The idea was inspired by preloading usage, when some scripts are actually > preloading scenarios and have to be executed, but don't have to be cached. > > > https://github.com/php/php-src/pull/3678 > > > The change is really small in both syntax and implementation, so I > wouldn't like to waste time going through the full RFC process. > > I'm going to commit this into master on Wednesday (November 28), if no > objections. > > > Thanks. Dmitry. > Can you please provide an example where this would be used? Should all scripts involved in preloading (including the main one) be marked this way? I'm not sure I fully understand the purpose. Nikita --000000000000af2cb9057b522ccb--