On Fri, Nov 23, 2018 at 8:36 AM Pierre Joye <pierre....@gmail.com> wrote:

> > Especially, the main preload.php, usually should be marked, to disable
> its
> > caching.
> >
>
> should this specific case not be done automatically then?
>
> I'm with Pierre on this.  During the preload phase, we should probably
have implicit caching disabled and only cache things brought in via
opcache_compile_file().
Outside of the preload pragma, I'd worry that this declare would be
mistakenly overused in most cases.  Question though... who wins if a file
is explicitly loaded with opcache_compile_file *and* it has the "don't
cache me, bro" pragma?  I'd expect the file wouldn't be cached in that case.

That said, I'm of the "here's your gun, try not to shoot yourself" school
on most things, and I see no harm in this when used judiciously, so no
objections from me.

-Sara

Reply via email to