What is Website Caching? And Why Should I use it on my Website?
Caching is one of those ultra geeky topics that usually presents itself as more of a topic of frustration, than an asset for your business website.
Caching happens on many levels and for many reasons, and we thought it would be helpful to describe what a cache is, and how it can help or sometimes cause frustrations.
So what is a cache exactly?
Caching in relation to websites basically means that a copy of your content is stored in a format and place that allows it to be easily and quickly recalled. Instead of accessing a database, or reaching out across the web for content, a cache can store this content (closer to you) and serve it to visitors in a much more efficient manor.
Most of our clients are exposed to the concept of caching when they go to view their website after having made a change, and the edit doesn’t show. The culprit is the browser cache and while it can be annoying, the browser caches purpose is to speed the loading of websites that you visit more than once. Your browser basically stores a copy of the website (code/media) on your computer, so that when you revisit a website the content is pulled from your local computer and not from across the Internet. Most browsers are smart enough to know when a page changes so generally clearing your cache is a small issue that is easily rectified without any work.
Another type of caching is related to WordPress or database powered websites. Most clients don’t realize, but if you run a WordPress website, your content is stored in a database and when a person views your website, the content is pulled from the database, assembled into a template and then presented to the visitor. While normally very efficient, caching a WordPress site can eliminate the need for frequent database queries, and can dramatically speed the loading of your website. Your website is also better able to withstand a large influx of traffic – so it’s good practice even if your site is already loading quickly to enable caching.
Note: Most of our hosted WordPress sites already utilize caching, and our clients on our managed WordPress platform utilize a powerful caching system as well.
Other types of caches are present throughout the Internet infrastructure and their purpose always is to improve efficiency and speed.
The obvious drawback, or frustration with caching is the situation where you update content, or settings and the change is not immediate. Different caches have different techniques to clear or update themselves, but sometimes a cache can be “sticky” and present problems. Being aware of a cache is the single best way to mitigate these issues, and knowing the policies for caching will help in the process and will minimize any confusion when making changes.
There is much more detail to the topic of caching that we won’t cover here, but if you’re interested in exploring this more, or are curious if your site needs or uses caching, contact us and we’d be happy to explain it further and give you a specific analysis of your website.