Archive

Author Archive

Does a Failed WordPress Upgrade Change the Permalinks?

May 20th, 2011

None of my post links on this blog worked earlier, they all returned 404 Errors. I could not think why, apart from recently I tried the automatic WordPress upgrade which subsequently failed so left the site as it was (it always fails!). As a result any Google indexed results were not found, and the Tweets icon could not update. This is quite a serious issue for well ranked and visited blogs. I had no idea until I just visited one of the pages.

Read more…

Author: Laurence Cope Categories: Blogging Tags:

Adding Options and Attributes to Zencart Products

May 20th, 2011

A customer just asked me how to add options and attributes in the Zencart shopping cart system, so I wrote a quick tutorial on it and thought it may be useful to post here. The official Zencart help page is here http://tutorials.zen-cart.com/index.php?article=57

Read more…

Author: Laurence Cope Categories: Zencart Tags: , ,

Importance of Updating/Upgrading Your Website

November 22nd, 2010

With the recent attack on the Royal Navy website I thought it prudent to explain the importance of upgrading and updating your website, not only for security reasons to prevent attacks like this but for a variety of other positive reasons.

Read more…

Tips for Using The Joomla Content Manager and Editor

October 7th, 2010

These are some of my favourite handy tips in using the editor within the Joomla Content Management system. I hope to add to this list as time goes on so be sure to check back now and again for more, and please feel free to comment your own ideas I can add to the list.

Read more…

Why You Should Not Copy and Paste from Word into Your Content Management System

August 25th, 2010

It is very common for website owners to create or be given content in a Microsoft Word document and they copy and paste that directly from Word into the content management system. This is not the correct way to copy your content onto your website and could lead to potential problems, even the website page not working. This blog explains why and what you should do instead.

Read more…

Different Types of Web Site Hosting – Which is Best for You

August 6th, 2010

Server room Following on from my recent posts Static or Dynamic (Content Managed) Website and Choosing the Right Type of Website Design, part 3 of my Choosing the Right Website Series focuses on the different hosting options websites and the advantages and disadvantages of each one.

Read more…

Author: Laurence Cope Categories: General Tags: , ,

Choosing the Right Type of Website Design

July 30th, 2010

bespokeFollowing on from my recent post on Static or Dynamic (Content Managed) Website – Which is Best? part 2 of my Choosing the Right Website Series focuses on the differences between various design options available for your website, the advantages and disadvantages of each one and the recommended choice. Read more…

Static or Dynamic (Content Managed) Website – Which One is Best

July 23rd, 2010

image of Content Managed Dynamic WebsiteDynamic websites with feature rich content management systems have been around for many, many years now, and offer a lot more features and flexibility compared to static websites, yet so many websites are still being developed as a static site over a content managed (dynamic) website.

This blog will explain what both static and dynamic websites are, their advantages and disadvantages, which one is best in my opinion, and hopefully help you gain a better understanding so you can choose the right one for you.

Read more…

Gmail Tip: How To Stop Checking Email All The Time

June 2nd, 2010

Image of GMail LogoI just wanted to quickly share a good GMail setup I am trialling to help me stop checking email all the time which can be very counter productive (this is a follow up to my Blog asking what the best email client is for GTD which I have come to the conclusion does not exist!). This little tip could be used for any email client which instantly checks and notifies you of new email. Windows clients like Outlook should have a control to stop checking email so you wont need this.

Read the Full Article

Author: Laurence Cope Categories: GTD Tags: ,

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.