In this tutorial, we will explain how to set up caching in WordPress using a popular plugin.
Why Use Browser Caching on WordPress?
Browser caching speeds up your website by storing elements of a webpage on a user’s device, reducing load times for returning visitors. Faster loading improves user experience and boosts search engine rankings.
Best Plugin for Browser Caching
Many caching plugins are available in the WordPress repository. Choose one that is updated regularly, compatible with your WordPress version, and well-reviewed. In this guide, we use WP Total Cache, a popular plugin with over a million users and thousands of 5-star reviews.
How to set up caching using WP Total Cache?
- Log in to your WordPress admin panel.
- Scroll to Plugins > Add New.
- In the Add New page search bar, type ‘Caching’. A list of all the caching plugins will be displayed, so if you would rather choose a different plugin, you can select one here.
- Find WP Total Cache and click the Install Now button.
- Once the installation is complete, click the Activate button.
- Once you activate WP Total Cache, a new item, Performance, will be added to the left-hand menu of your website dashboard.
- Navigate to Performance > General Setting.
- In the General section, enable Preview Mode and click Save All Settings. Preview Mode allows you to see the effects that your WP Total Cache settings have on your website before making them live. This will allow you to test your settings options to make sure they don’t stop your website from working properly.
- Scroll to the Page Caching section, check the Enable box and click the Save Settings & Purge Cache button.
- Scroll up to the General section, click the Preview button and check that your website is working as expected.
If it isn’t, scroll back to the Page Caching section, uncheck the Enable box and click the Save Settings & Purge Cache button. This will disable Page Caching. - If everything is fine, repeat the process for the Database Cache and Browser Cache.
Remember: enable these one at a time, click Save Settings & Purge Cache after checking the Enable box and preview the changes before moving on to the next section.
If any affect your site, disable them by unchecking the enable box and clicking Save Settings & Purge Cache. - Once your caching options have been enabled and the previews show that your site is working as it should, you can make these changes live. To do this, scroll up to the General box, click the Deploy button and then click the Save All Settings button.
- Caching will now be set up on your website and your website will load faster on users’ browsers.
For more help with your hosting, visit our Knowledgebase.