Configuration

Configuring Caching in Joomla to Improve Site Performance

Configuring Caching in Joomla to Improve Site Performance

Speed up Joomla by switching on the built-in cache: choose conservative or progressive caching, set the cache time and add the Page Cache plugin.

Is your Joomla site running slower than you'd like? One of the quickest ways to improve performance is by properly configuring Joomla's built-in caching system. This tutorial walks you through the process step by step.

Why Enable Caching?

  • Faster page loading times - Cached pages load significantly quicker
  • Reduced server load - Less processing required for repeat visitors
  • Better user experience - Visitors appreciate speedy websites
  • Improved SEO ranking - Search engines factor site speed into rankings
  • Lower bounce rates - Faster sites typically keep visitors engaged longer

Step-by-Step Configuration

Step 1: Basic Cache Configuration

  1. Log in to your Joomla Administrator panel
  2. Navigate to System → Global Configuration
  3. Click on the System tab
  4. Find the Cache Settings section
  5. Set System Cache to "ON - Conservative Caching"
  6. Select your preferred Cache Handler (File is the default and works well)
  7. Click Save & Close

Step 2: Configure Advanced Caching (Optional)

  1. Go to System → Manage → Plugins
  2. Find and open the "System - Page Cache" plugin
  3. Set Status to "Enabled"
  4. Configure the plugin settings:
    • Set appropriate cache lifetime (in minutes)
    • Exclude URLs if needed (one per line)
  5. Save the plugin settings

Step 3: Configure Browser Caching

  1. Access your site's .htaccess file
  2. Add the following code at the end of the file (for Apache servers):
 
## Begin - Browser caching
<IfModule mod_expires.c>
  ExpiresActive on
  ExpiresByType image/jpg "access plus 1 month"
  ExpiresByType image/jpeg "access plus 1 month"
  ExpiresByType image/gif "access plus 1 month"
  ExpiresByType image/png "access plus 1 month"
  ExpiresByType text/css "access plus 1 week"
  ExpiresByType application/javascript "access plus 1 week"
  ExpiresByType text/javascript "access plus 1 week"
  ExpiresByType application/pdf "access plus 1 month"
  ExpiresByType text/html "access plus 2 days"
</IfModule>
## End - Browser caching

Step 4: Clean and Test Your Cache

  1. Go to System → Maintenance → Clear Cache
  2. Select "All" and click "Delete"
  3. Test your website and verify pages are loading faster
  4. Use tools like Google PageSpeed Insights to measure improvement

Cache Configuration Tips

For Small to Medium Websites:

  • Start with "Conservative Caching"
  • Use the "File" cache handler
  • Set cache time to 15-30 minutes

For Large, High-Traffic Websites:

  • Consider "Progressive Caching"
  • Use "Memcached" or "Redis" cache handlers if your server supports them
  • Implement a CDN for static assets

Troubleshooting Common Issues

Content Not Updating After Changes

  1. Clear the Joomla cache after making significant content changes
  2. Consider decreasing cache time for frequently updated sites

Caching Causing Display Issues

  1. Try a different cache handler
  2. Add problematic URLs to the exclusion list in Page Cache plugin
  3. Temporarily disable caching while troubleshooting
Stuck on something else?

Doctor Joomla is a project of Cloudfaction, a Dutch agency building and maintaining Joomla sites since 1999. The articles are made with the help of AI, so tell us if something does not match your screen. Mail info@cloudfaction.nl if you want someone to look at yours.

Rather have someone look at it

Doctor Joomla is a Cloudfaction project.

A Dutch agency that has been building and running Joomla sites since 1999. If your site needs more than an article can fix, get in touch.