Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:103494 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 5638 invoked from network); 25 Nov 2018 19:41:19 -0000 Received: from unknown (HELO mail-qt1-f179.google.com) (209.85.160.179) by pb1.pair.com with SMTP; 25 Nov 2018 19:41:19 -0000 Received: by mail-qt1-f179.google.com with SMTP id d18so14962088qto.8 for ; Sun, 25 Nov 2018 08:04:29 -0800 (PST) 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=tn8eh1l2W552S0YNyRY3QHNh0vR6V9m8VwRhRf+8CBg=; b=Cc5cmzXDFpeaMqf3TLbTkPpithTleB6Y70aiQAgMBVsJxs4NQTBcNtxyYywPP3Xxcv bAD2209rMjvW8XY6XjAG0Z6YgSiHNOwrjljah8HlVfJ+TqU6C9G4ZqPKMvMV9OofFkNq /0VtDsVx7NDXYKfDHZndk/QNt7bUOur2UZJwuH9tujRjKXmdW33jmu0x4pqxi1hlKijU LIt+CaCIo9gm/shd1v4TNZ0Wccx2zTV1Qr2OI3AknER/4JUs+4q9xWZ//eN1PInNGLCl hqBT3NPl1p86wmwLS+CmPLLluZ+CAQEcpkikvO+GvqxDEOYTCPr1gKe2sdaIUzC+G/7n A94g== X-Gm-Message-State: AGRZ1gIABNXk+1cOcGcAEfs1UPn13LHR6SlYWiDF2oInGSCdvgXgWvcw GS9Yw8n5Jxa7EgziRfDmYEgSypGzbBH1OTqXhBn69A== X-Google-Smtp-Source: AJdET5foTEuJETpzQHnTN966lCB4mp0sq6uVbF+w6zw2SSz2jUZuYthGCjX4bHhGLpEQPcrj1C2zJIWIURZvaBB3jrk= X-Received: by 2002:ac8:4884:: with SMTP id i4mr21957295qtq.219.1543161869506; Sun, 25 Nov 2018 08:04:29 -0800 (PST) MIME-Version: 1.0 References: <1cb7fecd-22ba-0ded-5bd6-e70208053012@gmail.com> <7f65012b-e26a-fb58-718b-b35569e53d03@gmail.com> In-Reply-To: Date: Sun, 25 Nov 2018 10:04:18 -0600 Message-ID: To: Marco Pivetta Cc: Stanislav Malyshev , Rowan Collins , PHP internals Content-Type: multipart/alternative; boundary="000000000000102f80057b7f5f05" Subject: Re: [PHP-DEV] [mini-RFC] Disable opcache per script using "declare(cache=0)" From: pollita@php.net (Sara Golemon) --000000000000102f80057b7f5f05 Content-Type: text/plain; charset="UTF-8" On Sat, Nov 24, 2018 at 11:03 PM Marco Pivetta wrote: > Adding to the pile of "it's an edge case", since the preload scripts will > be procedural, wouldn't it be sufficient to call > `opcache_invalidate(__FILE__)` at the end of them? > I suppose the only negative there would be some very minor fragmentation, though again, since we can reasonably expect preload scripts to be fairly simple affairs, I'm not massively bothered by this approach. On the other hand, I love its simplicity. --000000000000102f80057b7f5f05--