simple-cache icon indicating copy to clipboard operation
simple-cache copied to clipboard

Plesk disables opcache_get_cache() in PHP

Open ophian opened this issue 3 years ago • 1 comments

Hi Lars

Plesk changed its defaults to use Plesk 17.8.11 - PHP value "disable_functions" changed to default value "opcache_get_status" And Hosters tend do follow this approach. ​ /src/voku/cache/AdapterOpCache.php in Line 36 uses !empty(@\opcache_get_cache()) to check that op cache is enabled.

PHP 7.4 is @silenced, but PHP 8 errors in Userland. This disabled method could be replaced by

!empty(@\opcache_get_configuration())

I assume we better have something like

$opcache_get_configuration['directives']['opcache.enable'] === true

to ensure opcache is really enabled.

What do you think?

ophian avatar May 03 '21 15:05 ophian

@voku ping

ophian avatar May 05 '21 06:05 ophian