Difference between revisions of "Change OPcache interned strings buffer size globally"
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
| Line 18: | Line 18: | ||
# systemctl restart php8.1-fpm.service  | # systemctl restart php8.1-fpm.service  | ||
</syntaxhighlight>  | </syntaxhighlight>  | ||
[[Category:Nextcloud]]  | |||
Latest revision as of 12:09, 7 February 2024
Prologue
In some cases you may need to define a higher interned_strings_buffer than given by the default PHP configuration.
You can create a file in the mods-available folder and enable it.
 The only downside to this is, if you install a newer PHP version, you might have to repeat the process.
/etc/php/8.1/mods-available/local-opcache.ini
1 opcache.interned_strings_buffer=16
Enable it with following command:
phpenmod local-opcache
# You may need to restart your services to make this work.
# systemctl restart apache2
# systemctl restart php8.1-fpm.service