Blog · WebJi® India

Enable PHP OPcache: Faster PHP Without Changing Any Code

Quick answer: Enable PHP OPcache: Faster PHP Without Changing Any Code from WebJi®, billed in INR with 18% GST on the invoice. Email support@webji.services is 24/7 in Hindi and English (average first reply under 60 minutes). Phone +91 141 4941811 is business hours only. The company has been in this business since 2005.
✓ In business since 2005✓ INR + GST billing✓ 24/7 Email Support — avg reply < 60 min
Warm modern Jaipur office interior with jaali lattice screens and an Indian team at work — enable php opcache

What OPcache does

Through the MultiPHP INI Editor, two minutes flat:

  1. Open the editor — cPanel > MultiPHP INI Editor, pick the domain
  2. Enable the switch — opcache.enable=1
  3. Size the cache — opcache.memory_consumption=128 (MB) suits most WordPress sites
  4. Save — PHP-FPM reloads automatically
  5. Verify — phpinfo() shows 'Zend OPcache' enabled; reload speed drops immediately

OPcache keeps compiled PHP bytecode in memory, skipping recompilation per request — the cheapest real speedup available. Two gotchas: validate_timestamps off means code changes need a reload (the 'changes not showing' classic), and LiteSpeed+LSCache handles the page layer while OPcache handles PHP. Our cPanel hosting plans pre-tune both, and the PHP version guide pairs the upgrade.

Checking if it is running

Checking if it is running. Do the change this heading names on one site first, then check it in a private browser window or in the mail client, depending on the topic. Change one setting at a time, and undo it if the result is wrong before you try the next. If you want the Jaipur desk to look with you, email support@webji.services — that mailbox is staffed 24/7 in Hindi and English. Phone +91 141 4941811 is business hours only.

Warm modern Jaipur office interior with jaali lattice screens and an Indian team at work — enable php opcache

Enabling in cPanel step by step

Two practical notes on php.ini directives (opcache.enable, memory_consumption): it interacts directly with caching and database response, and misconfiguration is the most common cause of 'hosting is slow' tickets. WebJi® support checks it as part of standard migrations.

Key settings explained

Key settings explained. Do the change this heading names on one site first, then check it in a private browser window or in the mail client, depending on the topic. Change one setting at a time, and undo it if the result is wrong before you try the next. If you want the Jaipur desk to look with you, email support@webji.services — that mailbox is staffed 24/7 in Hindi and English. Phone +91 141 4941811 is business hours only.

The 'changes not showing' fix

How this plays out with max_accelerated_files: settings that look cosmetic usually decide page speed and uptime under real traffic. The defaults WebJi® ships are tuned for Indian network conditions, and support can review your setup on request.

Verifying with phpinfo and speed tests

Create a temporary file that only calls phpinfo(), open it in the browser, and read the PHP version, memory_limit and loaded extensions. Delete the file as soon as you have checked it. A blank page usually means the file is outside the document root, or PHP is not enabled for that site.

OPcache with LiteSpeed and PHP-FPM

How this plays out with phpinfo verification: settings that look cosmetic usually decide page speed and uptime under real traffic. The defaults WebJi® ships are tuned for Indian network conditions, and support can review your setup on request.

Frequently Asked Questions

How do I enable OPcache in cPanel?

Linux shared and WordPress plans use cPanel. Windows plans use Plesk. The panel login is separate from the client area where you pay invoices and open tickets. If you need a specific panel on a VPS, say so in the quote request to support@webji.services — it is not assumed on every unmanaged server.

Does OPcache make WordPress faster?

Yes for visitors in India: a shorter route to an Indian server usually beats the same site sitting in the US or Europe, especially on mobile networks. It does not fix heavy images or a slow theme. Email support@webji.services if you want the current location confirmed for the plan you are buying.

How do I check if OPcache is enabled?

On shared plans it is pre-configured; on custom-quoted tiers you choose the values, and our Jaipur desk sizes them against your actual traffic before you commit.

What should opcache.memory_consumption be set to?

Two practical notes on php.ini directives (opcache.enable, memory_consumption): it interacts directly with caching and database response, and misconfiguration is the most common cause of 'hosting is slow' tickets. WebJi® support checks it as part of standard migrations.

Why don't my code changes show after enabling OPcache?

OPcache keeps compiled PHP bytecode in memory, skipping recompilation per request — the cheapest real speedup available. Two gotchas: validate_timestamps off means code changes need a reload (the 'changes not showing' classic), and LiteSpeed+LSCache handles the page layer while OPcache handles PHP. Our cPanel hosting plans pre-tune both, and the PHP version guide pairs the upgrade.

Is OPcache enabled by default on PHP 8?

For “Is OPcache enabled by default on PHP 8”: OPcache keeps compiled PHP bytecode in memory, skipping recompilation per request — the cheapest real speedup available. Two gotchas: validate_timestamps off means code changes need a reload (the 'changes not showing' classic), and LiteSpeed+LSCache handles the page layer while OPcache handles PHP. Our cPanel hosting plans pre-tune both, and the PHP version guide pairs the upgrade.

Is WebJi® an Indian company?

Yes. WebJi® is headquartered in Jaipur, Rajasthan and has operated since 2005. Billing, support and governance all run from India.

Do you provide GST invoices?

Every purchase and renewal gets a GST invoice with our GSTIN, and hosting prices are quoted exclusive of 18% GST. Claim input credit as applicable.

Need help with this?

WebJi® support does it for you — free. Talk to our Jaipur team →