Jump to content

Best OPcache settings for PS 1.7


GranWizard

Recommended Posts

Hi there,

What are the best settings for OPcache for PS 1.7? I searched the forums and found this page:
https://devdocs.prestashop-project.org/1.7/scale/optimizations/
Not all settings are available and not all topics are consistent or in English.

Here are my server options: ( I use PHP 7.4, 10.5.19-MariaDB and my shop has around 5k products)

allow_url_fopen: Yes / No
apc.shm_size: 32M /  64M / 128M / 256M / 512M
disable_functions: "system,exec,shell_exec,passthru,proc_get_status,proc_nice,proc_terminate,dl,popen,pcntl_exec"
max_execution_time: 30 / 60 / 300 / 900
max_input_vars: 1000 / 2000 / 3000 / 4000 / 5000
opcache.consistency_checks: Yes / No
opcache.enable_cli: Yes / No
opcache.max_accelerated_files: 5000 / 10000 / 20000 / 50000 / 100000 / 500000
opcache.memory_consumption: 64 / 128 / 256 / 512 / 1024 / 2048
opcache.validate_timestamps: Yes / No

My sense would be increase all to max, but I look forward to finetune it to perfection. Please help...

 

Link to comment
Share on other sites

the best? 

running dedicated FPM for a domain they have their own private opcache.  Also you time is better spent tuning your mysql config, see phpmyadmin it proivdes guidance on what resouces are not well defined.  cpu's spend most of their time waiting for data, so focus there

the Plesk control panel allows one to easily manage not only dedicated fpm but opcache as well. 

If you have any other domains on same hosting but want one to have more than others:

  • Dedicated FPM application served by Apache.
  • Dedicated FPM application served by nginx.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...