Cache on Joomla! 1.5 : use it or not?
Saturday, 16 May 2009 08:44

Here's a dilemma that afflicts every Joomler who knows what the cache: use it or not?. Before we see the clarity on this term, then look at where, how and when to activate. A cache (pronounced chesc) is a mechanism by which we offer a web page previously developed / visited (technically in cache or cache) to a visitor rather than let them develop all the code that forms the same page.

The mechanism is very simple, with a practical example.

Suppose you have a page showing content: we have first of your HTML, then PHP should be to develop a query to the MySQL database, and when I visit for the first time the page is performed all these operations, with a time of 1 second (value invented and totally random).

If at this point developed a system cache, write an application that first of all create a page with the HTML code produced by a simple php page, the result is that when put in the cache page with all the PHP and SQL processing already the resulting HTML code saved in a folder on the site.

Final point: When that page you will be required (a new visitor) script caching prepared to offer visitors the saved HTML page rather than provide all the code (HTML - PHP - SQL) to process.

The result is that the new page will load in less time than the latter that we start to get.

A great advantage? Maybe!

The cache is temporary: that every tot minutes the cached pages are removed from our space. Why? Because in the meantime if the page was updated the script caching not found it goes to reprocess the page, and not finding updated offering visitors the old page.

There is, frankly, a default time and the best location for the cache, because it varies for each of our need for some 3 minutes are vital (many visitors), for others it is sufficient to 1 hours (few visitors).

The biggest problem of the cache is that if we are used to update the site very often, or have a basket of products to which we change the price, as long cache (3 minutes, 15 hour ...) to offer Visitor "old" pages: imagine what would happen if after you have doubled the price of a product, a user, thanks to the cache, could buy it at half the price?

Cache with high time (even days) may then be detrimental to the weight of the site every HTML page cached weighs, and if we think we might need to cache a thousand as we understand the weight of the cache folder can become a serious problem.

1.5 fortunately has an excellent system cache, disabled by default, which acts on all fronts: other components, such as Joom! Fish, machines cache standalone systems.

Who is recommended to enable the cache?

Who owns a site with:

  • practically only textual content (news),has a good user traffic (not even one thousand, but only 10 per day)
  • a site quite heavy

But if you have a site already very light and waterborne clear the cache completely useless.

To activate the cache, we must, from the administrative panel, go to Site -> Configuration -> System on the right side of the screen find the settings to enable and configure the internal cache of Joomla! 1.5.

Usually you can include or exclude certain extensions from the cache at will, regardless of whether or not after that Global is the case of - usually - most of the many modules and components (such as Joom! Fish 2.0).
 

Support Us

If you like my site and want to help me, support my work by consider a little donation here. FACT: US $17/month for Server Hosting + US $80/month for internet connection + hundred hours of working/month.

Your little donation will much be appreciated and sure help me keep make joomla 1.5 free template.

Supported By

Office Space London
Dish Network
removals to holland
Authoritative egg donation center - No waiting list