OPchache max keys cannot be changed - Hack The Tech - Latest News related to Computer and Technology

Hack The Tech - Latest News related to Computer and Technology

Get Daily Latest News related to Computer and Technology and hack the world.

Monday, February 21, 2022

OPchache max keys cannot be changed

I want to increase the maximum number of cached keys in OPcache. As far as I understand this can be achieved by setting opcache.max_accelerated_files in the PHP settings.

However, the maximum number of cached keys always defaults to the initially configured value in /etc/phpXX/conf.d/opcache.ini. It appears that the setting opcache.max_accelerated_files is properly parsed, but OPcache ignores it somehow. What could be the cause of this issue?

Here are screenshots from the phpinfo(): PHP info: OPcache status, PHP info: OPcache setting

I understand that the maximum number of cached keys should be the first number in the set of prime numbers that is greater than or equal to the configured value. But this is not the issue here.



source https://stackoverflow.com/questions/71192973/opchache-max-keys-cannot-be-changed

No comments:

Post a Comment