simple-cache
simple-cache copied to clipboard
Plesk disables opcache_get_cache() in PHP
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?
@voku ping