Skip to content

Using APC or OPcache with Joomla

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, OPcache is supported on Managed VPS accounts. Contact Ruachost support to check availability on your shared hosting plan.

  • Speeds up Joomla page rendering.
  • Reduces CPU usage by caching compiled PHP code.
  • Improves scalability for high‑traffic sites.
  • Provides better overall site performance.
  • 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.
    • On ruachost.com, APC and OPcache are enabled on supported hosting packages.
    • Check PHP info (phpinfo()) to confirm availability.
    • APC and OPcache work at the web server level.
    • Joomla does not require special configuration to benefit from opcode caching.
    • 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.
  • 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.