# Optimizing Joomla for performance

> Make your Joomla site faster by turning on caching, adding Apache optimisations, minifying CSS and JavaScript and disabling debugging.

Source: https://helpcenter.ruachost.com/apps/joomla/optimizing-joomla-for-performance/

Joomla includes several configuration options and server‑side optimizations that can significantly improve your site’s speed and responsiveness. On **ruachost.com**, you can enable caching, configure Apache directives, and optimize CSS/JavaScript files to deliver faster page loads.

## Why Optimize Joomla?

- Faster page load times improve user experience.
- Reduced server resource usage.
- Better SEO rankings due to improved performance.
- Increased scalability for high‑traffic sites.

## Steps to Optimize Joomla

### 1. Enable Joomla Caching

1. Log in to Joomla as the **administrator**.
2. Go to **System → Global Configuration → System tab**.
3. Under **Cache Settings**, set **Cache** to **ON – Conservative caching**.

   - Conservative caching: all visitors see the same cached content.
   - Progressive caching: caches content per visitor (resource‑intensive, not recommended).
4. Set **Cache Time** (in minutes) based on how often your content changes.
5. Save changes.
6. Go to **Extensions → Plugin Manager**, search for **cache**, and enable **System – Page Cache**.

### 2. Apache Optimizations

#### Compression

Enable output compression with `mod_deflate`:

```

  AddOutputFilterByType DEFLATE text/html text/css text/javascript application/javascript

```

#### Browser Caching

Enable browser caching with `mod_expires`:

```

  ExpiresActive On
  ExpiresByType image/gif "access plus 1 month"
  ExpiresByType image/jpeg "access plus 1 month"
  ExpiresByType image/png "access plus 1 month"
  ExpiresByType text/css "access plus 1 week"
  ExpiresByType text/javascript "access plus 1 week"
  ExpiresByType application/javascript "access plus 1 week"
  ExpiresDefault "access plus 1 week"

```

Add these directives to your `.htaccess` file in Joomla’s root directory.

### 3. Optimize JavaScript and CSS

- Combine files to reduce HTTP requests.
- Minify files to reduce bandwidth usage.
- Use plugins such as **JCH Optimize**:

  - Install via **Extensions → Manage → Install**.
  - Enable **System – JCH Optimize** plugin.
  - Configure automatic settings (e.g., Minimum).

### 4. Disable Debugging

- Go to **System → Global Configuration → System tab**.
- Ensure **Debug System** and **Debug Language** are set to **No**.
- Debugging consumes resources and should only be enabled for troubleshooting.

## Additional Options on ruachost.com

- **Managed VPS/Dedicated Servers**: Support **Memcached** and **Redis** for advanced caching.
