Re: [mini-RFC] Disable opcache per script using "declare(cache=0)"

From: Date: Sun, 25 Nov 2018 16:04:18 +0000
Subject: Re: [mini-RFC] Disable opcache per script using "declare(cache=0)"
References: 1 2 3 4 5 6 7 8  Groups: php.internals 
Request: Send a blank email to internals+get-103494@lists.php.net to get a copy of this message
On Sat, Nov 24, 2018 at 11:03 PM Marco Pivetta <ocramius@gmail.com> 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.

« previous php.internals (#103494) next »