Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:103483 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 4646 invoked from network); 23 Nov 2018 18:14:04 -0000 Received: from unknown (HELO mail-wr1-f47.google.com) (209.85.221.47) by pb1.pair.com with SMTP; 23 Nov 2018 18:14:04 -0000 Received: by mail-wr1-f47.google.com with SMTP id t3so12566936wrr.3 for ; Fri, 23 Nov 2018 06:36:43 -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=D8cpMRYNeTDwcIq8lCFqKtxGfbnU5oayDk3F4NoAB2w=; b=O+EySHEVK0EJs+IV3u1lMhCa1+Z484FWnJGJsJTc1uReEQfWrvtesaBQHqIFMP9/GS Z7upGlpMq2bN14WvT9foxXcvyl19k/8mBfGrCHLVP1CYV4N2le305IDdpVoXs+tGJ4/o ah029iYxL932+Bk+AlhZ1VtVLDteHvyX9mFoh1FScencom0ukZnXRjokjCJcBs6Xs0uu 9l8YdD/1qLpAanbDJwKgzoxSD8jN/LvFc8S0Zu5agWs1+68rfSKZwxmiPzkq7NCFK3rM hXLplXxdZDpxAVDyNWG/R4dO35iMkSd++DPGQGxWbiTtjpszqyjTKAbtxZkunQmgXaN6 O+/g== 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=D8cpMRYNeTDwcIq8lCFqKtxGfbnU5oayDk3F4NoAB2w=; b=SmDoNxLhXRT0+yzzDa8NITvVkge5hXMEMcay607w9UhzR8ReYWbgXZJYbIDgLMZbtf KiVWA1Q5+2L2kG4gguo0b1SyTBhx+IaUG3AbAkRWwkNTQCU/G/n4VtckXWNlUl5gd7nU PvQfRRSiKguf7oW4UmbkZvgeACFVKumf/XtTIwUHDR2chabz+Qwc7OS6nqcM7ca2UMM7 2/AN+SfIpJZVjUAO7lQImWI8aV20O0/HEWvHQq1wVppyw2tb6vkJD9cVEqld43QZFDmu 64JwlWTtE6TyRqfAUsaIbpHKm06ohERw7lRwrFfpetna7vQKMTAVwR650+PI9BK/46sd vDqA== X-Gm-Message-State: AA+aEWbO+UNRqZTQcLt8W4/e58LBdeciDtBojuy0yqtRoVWRqxHuealM xkpARFT+FyiFx9z7YIdpBDy/a3uEEhjohr4+oGM= X-Google-Smtp-Source: AFSGD/U0KbWqIA/T4OA5ZPGy7kr0WZHAhkhS24VWJmPImc5DI0OKuVA5FC9C/Kq3ZrVDg8aAItbeWTfG4Wcl3ZKW4bs= X-Received: by 2002:a5d:6487:: with SMTP id r7mr14661554wru.263.1542983802754; Fri, 23 Nov 2018 06:36:42 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Fri, 23 Nov 2018 21:36:29 +0700 Message-ID: To: Dmitry Stogov Cc: Nikita Popov , PHP internals Content-Type: multipart/alternative; boundary="000000000000751be3057b55e9bd" Subject: Re: [PHP-DEV] [mini-RFC] Disable opcache per script using "declare(cache=0)" From: pierre.php@gmail.com (Pierre Joye) --000000000000751be3057b55e9bd Content-Type: text/plain; charset="UTF-8" Hi Dmitry, On Fri, Nov 23, 2018, 7:48 PM Dmitry Stogov Hi Nikita, > > > Especially, the main preload.php, usually should be marked, to disable its > caching. > should this specific case not be done automatically then? best, > > > Thanks. Dmitry. > > ________________________________ > From: Nikita Popov > Sent: Friday, November 23, 2018 1:08:53 PM > To: Dmitry Stogov > Cc: PHP internals > Subject: Re: [PHP-DEV] [mini-RFC] Disable opcache per script using > "declare(cache=0)" > > On Fri, Nov 23, 2018 at 11:04 AM Dmitry Stogov dmitry@zend.com>> 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 > --000000000000751be3057b55e9bd--