Skip to content

dart-creations.com

Advertisement
Home arrow Forums
Print E-mail
Tuesday, 05 June 2007

#6 - Switch on the Cache

Switch on Caching to give your Joomla website an instant performance boost.

 

What is a cache? Wiki says:

A Cache is a collection of data duplicating original values stored elsewhere or computed earlier, where the original data is expensive to fetch (due to slow slow access time) or to compute, relative to the cost of reading the cache. In other words, a cache is a temporary storage area where frequently accessed data can be stored for rapid access. Once the data is stored in the cache, future use can be made by accessing the cached copy rather than re-fetching or recomputing the original data, so that the average access time is lower.

What does this mean in terms of Joomla? Instead of hitting your MySql database with same queries over and over again, your data is stored to a local storage (in the Joomla cache directory) and retrieved from there, instead of from the database. This means that your database will perform better, and your website will feel faster, and be able to support more simultaneous users.

Joomla 1.5

Activitating the Joomla Cache is quite straight forward. From the Global Configuration, click on System Tab, and on the right hand side there is the Cache Settings section. Click Yes on Cache Settings, and put a reasonable amount in minutes (60 minutes should be quite good for most websites). Once you press Apply, Caching will be enabled.

Joomla 1.0 

The standard Joomla cache is enabled from Site > Global Configuration > System > Cache Settings (or Site > Global Configuration > Cache tab for Joomla 1.0), and mark it as enabled.

Though there are components written for caching the out of the box caching will give your website an instant boost.

Comments
Search RSS
kiran_ks  - Excellent articles!!   |24.219.21.xxx |2007-10-15 07:32:56
Hi,
This is what a new joomla admin wants! simple, easy-to-understand
articles.

Many thanks!

kiran
Melissa  - Switching on Cache = Messed-up   |155.212.194.xxx |2008-01-03 18:36:49
Any insight as to why switching on the cache for a website would modify images
and layout?

PLZ HALP!
Melissa  - Switching on Cache = Dodgy lay   |155.212.194.xxx |2008-01-03 18:38:14
Any insight into why switching on the cache would screw up the layout of a
website???
DART Creations  - Switching on Cache = Dodgy lay   |85.232.195.xxx |2008-01-03 19:14:53
I don't believe switching on caching should have an effect on the layouts. As I
understand it, caching is done for the database, not for the template CSS,
though I will investigate further.
DART Creations  - Messed up layouts   |85.232.195.xxx |2008-01-03 19:50:16
If you turn off the caching, does the layout come back to normal?
Uwe  - Messed up layout   |88.64.72.xxx |2009-01-17 13:56:05
Melissa, may be you have installed a PHP browser switch into your template or
something like that. In my case Joomla's Cache saved the first CSS-file (which
has been delivered by the switch) and provided it to any browser within the
cache-period.
Sebastian  - Backend access denied     |196.35.158.xxx |2009-03-10 07:24:45
Hi. I enabled cache with the first option (data) and my web page would not load.
when I switched it off again it was fine. Then I tried setting cahce to the
xcache option. Now my frontpage is gone (loads of errors) and the admin login
will not accept my password to switch off cache. Any thoughts & solutions. The
site link is above
Only registered users can write comments!

3.26 Copyright (C) 2008 Compojoom.com / Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved."

Last Updated ( Wednesday, 01 October 2008 )
 

Sponsors

Login Form






Lost Password?
No account yet? Register

Buy us a beer!

If we've helped you, consider buying a beer €3. It will inspire us to keep on giving! Cheers!


Generated in 0.26970 Seconds