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
- Log in to your Joomla Administrator panel
- Navigate to System → Global Configuration
- Click on the System tab
- Find the Cache Settings section
- Set System Cache to "ON - Conservative Caching"
- Select your preferred Cache Handler (File is the default and works well)
- Click Save & Close
Step 2: Configure Advanced Caching (Optional)
- Go to System → Manage → Plugins
- Find and open the "System - Page Cache" plugin
- Set Status to "Enabled"
- Configure the plugin settings:
- Set appropriate cache lifetime (in minutes)
- Exclude URLs if needed (one per line)
- Save the plugin settings
Step 3: Configure Browser Caching
- Access your site's
.htaccessfile - 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
- Go to System → Maintenance → Clear Cache
- Select "All" and click "Delete"
- Test your website and verify pages are loading faster
- 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
- Clear the Joomla cache after making significant content changes
- Consider decreasing cache time for frequently updated sites
Caching Causing Display Issues
- Try a different cache handler
- Add problematic URLs to the exclusion list in Page Cache plugin
- Temporarily disable caching while troubleshooting
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.