Archive

Archive for the ‘Joomla’ Category

Speed Up Your Website By Using Cache

June 1st, 2010

I recently finished a database intensive website using the Joomla content management system, and upon release the website popularity and therefore high database queries put quite a strain on the site which slowed it down more than usual. I try to develop websites to load as fast as possible, and with Google’s new "caffeine" release taking website speed into account it is all the more important.

In a situation like this one solution is to use website caching. Any database driven website (e.g. content managed), large or small, will benefit from using caching.

What is Caching?

Caching is when dynamic, database driven pages, such as those from a content managed website, are created as static HTML files on the server rather than pulled from the database every time someone requests a page. This means the page load times are must faster as no database queries or other script processing is performed.

Take a look at this monitoring report for the website in question before and after enabling cache. As you can see there is a dramatic improvement in page load speed (the vertical axis is page load times, the horizontal is time of day). A reduction from approx. 3 seconds to 0.2 seconds from within the UK.

Graph of website load speed over time

How Do I Enable Cache?

If you have a static website (plain HTML files, no content manager), then you do not need to do anything, cache is not required.

If you use a content management system, then cache is dependent upon your content management system, so speak to your web developer to ask them if such a cache system exists in your content manager.

If you use the Joomla content management system you will be pleased to know cache is built in and easily enabled.

  • Go to Extensions -> Plugins -> System Cache
  • Select the Yes radio button for Enabled
  • Enter the Cache lifetime (see below for explanation)
  • Click Save

That’s it!

b54e662b-f956-48c2-a32c-f62d1b869816334ec73f-09ce-4847-b0b3-dc9b4a63af3b 

What is Cache Lifetime?

Cache Lifetime is the time spent before the site performs a database query again and recreates the cached pages from the content. So any changes made will be shown after the lifetime expires. For a site that has infrequent content updates set the lifetime to a high number such as 24 hours or even 1 week (it’s in seconds), but if your site has regular content added or changed, then set it to a lower number, a number you are happy to wait before it re-generates, such as 1 hour or 15 minutes. If you have a busy site even 5 minutes will save a lot of database queries.

Resetting the Cache

c709d799-6297-412e-bce5-0578b59a9b21

Now your website pages will be saved on the server as HTML files rather than querying the database every time. This does have one drawback though, and that’s when you make a change in the editor, you will not see the change immediately on the site because it is showing a saved HTML page of before your change. You can either wait for the cache lifetime to expire and re-generate, or go to Tools -> Clean Cache and delete all the cached items to regenerate again. Then you will see your changes.

Beware of SEF

If you use a SEF component such as sh404SEF to make your URLs search engine friendly, make sure the SEF plugin is before the cache plugin else you may have problems with links.

Beware of Permissions

screen It’s possible you may have permissions issues which may disallow Joomla from deleting the cached files, especially if your FTP user owns all the files and not the server. If you have an failed to delete files error then you can enable FTP in the Joomla configuration so all file changes by Joomla will be performed by using the FTP user which may overcome file permissions issues.

You can do this by going to Site -> Global Configuration -> Server, and for FTP Settings choose Enable FTP Yes and enter the FTP details in the box. Click Save to save these details and you should be able to delete the Cached files.

Note: You should have the configuration.php file un-writeable for security, so you may also need to set this file to writeable using FTP first, save the above changes, then set the file back to un-writeable.

Adding Google Adsense to a Joomla Content Page To Make Money

January 19th, 2010

Google AdSense is a Google application that allows website owners to earn revenue from visitors to their website. It’s those “Ads by Google” links you see on this blog page below this post, and on the right hand column. It’s a great way to earn a little extra income if you have a busy website. This blog describes how to add Google AdSense inside a content page on your Joomla website.

Read more…

Author: Laurence Cope Categories: Joomla Tags: , ,

Interspire Email Marketer and Joomla AEC Subscription Manager Integration

August 26th, 2009

We’ve finished developing an integration between the popular AEC Subscription Manager for the Joomla content management system and the cutting edge Interspire Email Marketer. Using AEC’s Micro Integrations we have developed the process for when a user joins a subscription plan they are added to a contact list of choice and when they expire are removed from the contact list. With this integration it now means one of the most popular and feature rich newsletter systems can be used in a fully automated way with the leading Joomla content management system’s AEC Subscription component.

Read more…

Joomla Images and Robots.txt – Be Sure Google and Other Search Engines Can Index Them

August 12th, 2009

By default Joomla’s robots.txt file includes a line to disallow search engines indexing your images folder. This means the images on your Joomla site will not be indexed in Google and other search engines Images results. Here’s how to allow images to be indexed.

Read more…

Author: Laurence Cope Categories: Joomla, SEO Tags: ,

Exporting Joomla Content as a RSS Feed

June 16th, 2009

Joomla 1.5 supports exporting your section or category listing page as a RSS Feed right out of the box. So if you have a menu item linking to your latest news category for example, you can export this as a RSS Feed for others to add to their RSS Readers. The benefit is of course those readers will read your news updates without having to visit your site.

Read more…

Author: Laurence Cope Categories: Joomla, RSS Tags: ,

Adding Dynamic Joomla Modules and Content to Other Websites

May 29th, 2009

Just after publishing my latest blog, Integrating Joomla and Zencart (Sort Of) Using CURL and Standalone Templates, I realised that this method can be used to show Joomla modules on just about any website that you can add code to. The blog is mainly about Zencart because that’s what I use it for, but I realised if you have any other website you can access the code for, then you can follow these instructions to add Joomla modules to your website.

Read more…

Author: Laurence Cope Categories: Joomla Tags:

Integrating Joomla and Zencart (Sort Of) Using CURL and Standalone Templates

May 29th, 2009

I’ve developed quite a few Joomla and Zencart sites, some clients taking both together for their website. Joomla being great for the website CMS, and Zencart great for the shopping cart. The problem is, no complete, working integration exists between them. None that I have found anyway. A couple have been written and are work in progress in my mind, but still lacking in fundamental functionality. So the website ends up clearly as two separate systems to the website visitor which is not ideal. So I have spent some time trying to think of a way to integrate the two together and have come up with what looks to be a good solution… CURL.

This blog explains how to set this up in order to show Zencart within your website design. You will need knowledge of PHP, CURL and creating and assigning templates in Joomla and Zencart. Note: this is not integrating the Admin but the front end, to give the impression to the visitor that they are on the same website!

Actually, you don’t even have to use Zencart. It can be any other separate system to your Joomla website that you can change the template for. So you can use this method to add any Joomla module onto any other non-Joomla website. Read more…

Author: Laurence Cope Categories: Joomla, Zencart Tags: ,

Joomla Tutorial – Creating a Custom Page Title (Title Tag) to Improve SEO

May 26th, 2009

In a previous blog I mentioned that your page title (Browser Title or Title Tag) is one of the most important aspects to rank your website for keyword searches. For example, “About Amity Web Solutions, Web Design in Caerphilly” is better than “About Us” because it not only shows the search engine reader the company name but additional keywords which is important for ranking (see previous blog about 10 basic search optimisation techniques to improve your website rankings).

The problem with Joomla 1.5 is the form to set this title different to what the actual page is called is hidden away in the depths of the Menu Manager, and not in the page editor itself. This blog gives an overview of how to set the page title different to the page name in Joomla 1.5.

Read more…

Author: Laurence Cope Categories: Joomla, SEO Tags: ,

The Benefits of Using the Joomla Content Management System

May 13th, 2009

I am big fan of the Joomla Content Management System. I must have developed over 50 websites using Joomla over the past few years. With so many advantages over other systems it is my CMS of choice. That said, it’s still not widely known outside the tech world, with so many website owners not hearing of it.

This blog is to provide some information about the benefits of using Joomla.

Read more…

Author: Laurence Cope Categories: Content Management, Joomla Tags: ,