Re: [RFC] opcache.no_cache: Opcache optimization without any caching
| From: | tyson andre | Date: | Sat, 16 May 2020 18:45:01 +0000 |
| Subject: | Re: [RFC] opcache.no_cache: Opcache optimization without any caching | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-110191@lists.php.net to get a copy of this message | ||
> In my opinion, configuration names should never be "in the negative".
> Instead of defaulting to opcache.no_cache=0, default to opcache.cache=1.
I see your point - there are only a few negative ini names I see in phpinfo() (disable_functions,
disable_cache), and those are for lists of strings.
There's a mix of on by default and off by default in
zend.enable_gc, opcache.enable, opcache.enable_cli, opcache.enable_file_override,
enable_dl, and enable_post_data_reading.
opcache.enable_cache=1 as the default would probably be more consistent with those.
But the setting isn't actually enabling cache, it's allowing cache (i.e. opposite of
disabling),
so making this "opcache.allow_cache" might be the best. I'll probably go with that.
(similar to allow_url_fopen, allow_url_include)
-
opcache.cache could be confused with the caching strategy or the path to the cache,
or being sufficient on its own to enable caching
Thanks,
- Tyson