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
For PHP 7.1, change line 1166 of the ea-php71.spec file from
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.