Re: [VOTE] Opcache optimization without any caching
| From: | tyson andre | Date: | Sat, 30 May 2020 16:20:42 +0000 |
| Subject: | Re: [VOTE] Opcache optimization without any caching | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-110313@lists.php.net to get a copy of this message | ||
Hi Marco,
> The naming is extremely wonky: allow_cache to allow_optimization? 🤔
> Nonetheless, this is extremely valuable for widely used binaries and long running processes, so
> 👍
I'm not fully clear on what you mean for opcache.allow_optimization to do - you'd have to
combine it with changes to other settings
(e.g. allow it to override opcache.enable=0 to optimize but not cache if the opcache extension is
loaded).
The setting opcache.optimization_level is already available to enable or disable *optimizations*.
The separate setting in https://wiki.php.net/rfc/opcache.no_cache to
enable or disable caching seemed like the easiest to understand for me.
With opcache.enable=1, opcache.enable_cli=1 (if CLI), and opcache.allow_cache=0, optimizations are
enabled, but caching is disabled.
Thanks,
- Tyson