How to modify opcache.interned_strings_buffer from .htaccess with php_value
Question
I'd like to modify opcache.interned_strings_buffer
to 12 via .htaccess
file
I've added the following block to .htaccess
:
php_value opcache.interned_strings_buffer 12
php_value max_execution_time 180
php_value max_input_vars 1760
However only max_execution_time
and max_input_vars
changed.
I verified that values changed by inspecting phpinfo()
output.
How to change opcache.interned_strings_buffer
via .htaccess
?
Solution
According to documentation, most opcache directives are PHP_INI_SYSTEM so they should be changeable on httpd.conf or .htaccess. But opcache is a zend extension and value cannot be updated via .htaccess. I guess this is the problem.
There is a ticket on php.net opened for 4 years.
Licensed under: CC-BY-SA with attribution
Not affiliated with wordpress.stackexchange