# Using APC or OPcache with Joomla

> Find out how APC and OPcache speed up Joomla by caching compiled PHP code in memory, and how to use them with your site.

Source: https://helpcenter.ruachost.com/apps/joomla/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](https://dashboard.ruachost.com/submitticket.php) to check availability on your shared hosting plan.

## 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

1. ### Verify Server Support

   - On **ruachost.com**, APC and OPcache are enabled on supported hosting packages.
   - Check PHP info (`phpinfo()`) to confirm availability.
2. ### No Joomla Configuration Required

   - APC and OPcache work at the **web server level**.
   - Joomla does not require special configuration to benefit from opcode caching.
3. ### 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.
