OPcache is enabled by default?

Does Hestia somehow turn on opcache? The following options are commented on in the configuration:

[opcache]
; Determines if Zend OPCache is enabled
;opcache.enable=0

; Determines if Zend OPCache is enabled for the CLI version of PHP
;opcache.enable_cli=0

On the previous server I had a php 7.0 and there I turned on opcache manually.

I copy the utility https://github.com/amnuts/opcache-gui and it shows that opcache works and have cached files on my site. But not all of the files, but as if only the most popular.

PHP 7.4 ignores opcache settings or Hestia adds its own logic?

//excuse me, if the question is too stupid, tell me at least the requests for Google :wink:

; means that the settings is ignored and falls back on the default settings

Just checked on my own server and both have op cache enabled for fpm and
For 7.3 and 7.4

; Determines if Zend OPCache is enabled
;opcache.enable=1

; Determines if Zend OPCache is enabled for the CLI version of PHP
;opcache.enable_cli=0

It is normal to have only the “busy files cached” there is no need to cache a file that just run every 2 hour once…

Also see https://www.php.net/manual/en/opcache.configuration.php

1 Like

I didn’t know about it! Thank you!

1 Like