문제

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?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 wordpress.stackexchange
scroll top