Enable file-based OpCache for PHP 7.0/7.1
As a server administrator and shared web hosting provider I would like OpCache file caching to be compiled in with OpCache for PHP 7.0 and PHP7.1 in EasyApache4 in order to allow me the option to enable file-based caching if i would like to, and to help increase the security of my server.
Compiling this doesn't automatically enable file-based caching, but it gives administrators the option of enabling file-based OpCache in PHP 7.0 and PHP 7.1 if they so desire.
The fix for this would seem to be relatively simple, simply enable the opcache-file option in the spec file for each of PHP 7.0 and PHP 7.1.
For PHP 7.0, change line 1159 of the ea-php70.spec file from
--disable-opcache-file
to
--enable-opcache-file
For PHP 7.1, change line 1166 of the ea-php71.spec file from
--disable-opcache-file
to
--enable-opcache-file
The merits of OpCache security and the performance benefits of file-based OpCache, I suppose those could be discussed as well. But unless there is a specific reason why file-based OpCache should be disabled, I don't see why the option shouldn't at least be made available for server administrators to utilize.
OpCache tuning is left up to the admin, and is compiled if you select the correct profile. See https://forums.cpanel.net/threads/easyapache-4-all-php-options-opcache.504191/ and https://forums.cpanel.net/threads/opcache-config-in-ea4.583422/ for more details
OpCache tuning is left up to the admin, and is compiled if you select the correct profile. See https://forums.cpanel.net/threads/easyapache-4-all-php-options-opcache.504191/ and https://forums.cpanel.net/threads/opcache-config-in-ea4.583422/ for more details
This seems real easy for cPanel to just include when compiling, so hopefully it's not something that goes years without attention just because there's not enough votes. I could definitely use anything that could help reduce cache slam when opcache restarts or on server reboot.
This seems real easy for cPanel to just include when compiling, so hopefully it's not something that goes years without attention just because there's not enough votes. I could definitely use anything that could help reduce cache slam when opcache restarts or on server reboot.
Hey guys: I understand that it can be frustrating when a request that you put in isn't picked up before ones that you feel are less important, or more difficult. Unfortunately, the speculation about how and why features we choose are picked is not helpful, and incorrect. This kind of conversation is also inappropriate for the feature request site, so please take it to a private email thread.
This one is already on the EasyApache team's radar, but obviously hasn't been picked up yet. As soon as that changes, I'll let you know.
Hey guys: I understand that it can be frustrating when a request that you put in isn't picked up before ones that you feel are less important, or more difficult. Unfortunately, the speculation about how and why features we choose are picked is not helpful, and incorrect. This kind of conversation is also inappropriate for the feature request site, so please take it to a private email thread.
This one is already on the EasyApache team's radar, but obviously hasn't been picked up yet. As soon as that changes, I'll let you know.
Any movement on this? Seems to still not work. And could be helpful in this case: https://tideways.com/profiler/blog/dodge-the-thundering-herd-with-file-based-opcache-in-php7 and when sites get little traffic and their PHP processes drop out but SSDs could still cache their code.
Any movement on this? Seems to still not work. And could be helpful in this case: https://tideways.com/profiler/blog/dodge-the-thundering-herd-with-file-based-opcache-in-php7 and when sites get little traffic and their PHP processes drop out but SSDs could still cache their code.
Replies have been locked on this page!