APC (Alternative PHP Cache) and OPcache are PHP opcode caching systems that improve Joomla performance by storing precompiled PHP code in memory. This reduces the need for PHP to recompile scripts on each request, resulting in faster page loads and lower server resource usage. On ruachost.com, both APC and OPcache are supported on Turbo Web Hosting, VPS (managed/unmanaged), and Dedicated servers.
Why Use APC or OPcache?
-
Speeds up Joomla page rendering.
-
Reduces CPU usage by caching compiled PHP code.
-
Improves scalability for high‑traffic sites.
-
Provides better overall site performance.
About APC and OPcache
-
APC:
-
A PHP extension available for PHP 5.4 and earlier.
-
May or may not be installed depending on your server configuration.
-
-
OPcache:
-
A built‑in caching engine available in PHP 5.5 and later.
-
No separate installation required.
-
Recommended replacement for APC.
-
Steps to Use APC or OPcache with Joomla
-
Verify Server Support
-
On ruachost.com, APC and OPcache are enabled on supported hosting packages.
-
Check PHP info (
phpinfo()) to confirm availability.
-
-
No Joomla Configuration Required
-
APC and OPcache work at the web server level.
-
Joomla does not require special configuration to benefit from opcode caching.
-
-
Optional: Disable OPcache (Advanced)
-
In some cases, you may want to disable OPcache for debugging.
-
This can be done via PHP settings in cPanel or by editing
php.ini.
-
Important Notes
-
APC is deprecated in newer PHP versions; OPcache is the recommended solution.
-
Always back up your site before making server‑level changes.
-
Opcode caching complements Joomla’s built‑in caching but does not replace it.
-
For maximum performance, enable Joomla caching and OPcache.