1. Home
  2. Knowledge Base
  3. Optimizing PHP Performance With Opcode & JIT Complier

Optimizing PHP Performance With Opcode & JIT Complier

If you’re running a heavy website like a Woocommerce site or a site that does a lot of processing then PHP (the language WordPress runs on) is going to have to work quite hard.

The settings below help squeeze more performance out of your PHP by enabling the JIT Compiler and optimizing the PHP OPCache settings.

These settings will speed up the backend of your site in particular which is quite useful for Woocommerce sites. We’ve often seen backend load times drop from 3-5 seconds to 1-3 seconds on areas like Woocommerce order pages with these settings.

To add these settings, log into the hosting admin panel, click the Dashboard tab -> PHP and then add these settings into the “Additional directives” text box.

Once added, click OK

It’ll take a few minutes for the benefit of these settings to take effect but

opcache.huge_code_pages=1
opcache.interned_strings_buffer=64
opcache.max_accelerated_files=10000
opcache.max_wasted_percentage=5
opcache.memory_consumption=1024
opcache.revalidate_path=0
opcache.validate_timestamps=1
opcache.revalidate_freq=10
opcache.enable_cli=1
opcache.use_cwd=1
opcache.jit_buffer_size=32M
opcache.jit=1254

Need Support?

Can't find the answer you're looking for? Log a request by clicking the button below or try the livechat in the bottom right hand corner
Contact Support