Search engines consider site speed to be an important factor in search rankings. This is why at Tavernify we try our best to improve site load speed for our clients to an optimal level. Doing that, we have noticed that caching our client’s website helped us improve site speed as well as balancing huge spikes in traffic.
Restaurants that serves their customer with the quickest information will win. In this tutorial, we will help you on how to set your restaurant website at blazing speed with the help of a caching plugin.
First thing you need to do is install and activate WP Super Cache plugin (tutorial: the same step as how you install Yoast plugin in the SEO section previously.). Upon activation, WP Super Cache will notify you that caching is not enabled on your website at the moment.
Setting up WP Super Cache – The Easy Way
To enable cache, go to Settings » WP Super Cache. Under the Easy tab, turn Caching on and hit the update status button.
After turning on the cache, click on the test cache button to check if it is working. WP Super Cache will fetch your WordPress twice and will compare the timestamps of both pages. If the both time stamps match then this means that caching is working on your site now.
WP Super Cache Advanced Set up
WP super cache is a powerful plugin, and it comes with many advance options. These options can further improve your site’s performance. To Set up WP Super Cache with advance options, go to Settings » WP Super Cache and click on Advanced tab.
First check the box that says Cache hits to this website for quick access. Below that you will see three caching options. By default WP Super Cache uses PHP to serve cache files. However, using PHP to serve cache files can be resource intensive particularly on shared hosting environments. So we would like to recommend that you try using mod_rewrite to serve cache files. After that scroll down and hit the update status button to save these settings.
WP Super Cache will now show you a notification that mod_rewrite rules must be updated and possibly another notification about scheduling garbage collection. Scroll down the page, and you will see mod_rewrite rules that need to be added. Click on Update Mod_Rewrite Rules button to update these rules. Once mod_rewrite rules are updated this section will turn green.
To resolve the notice about garbage collection, scroll down on the advanced settings page to the Expiry Time & Garbage Collection section and set up a time and frequency for garbage collection of cached files on your server.
Enable Compression in WP Super Cache: Compression allows WP Super Cache to serve cached files of your restaurant website as compressed files. These files are downloaded by user browsers quickly due to their smaller size. To enable compression, simply check the box that says Compress pages so they’re served more quickly to visitors.
Serve a Static Site with WP Super Cache
The preload mode in WP Super Cache allows you to create super cache static files for all your posts and pages and serve a static website. You may ask Why would anyone want to do that?
To conserve server resources.
To serve an old site that is not being updated anymore.
To improve site speed by serving static content only.
These were just a few reasons but there could be many more reasons and situations where you might want to completely disable PHP processes. Don’t worry your restaurant website will work normally, and you will still be able to manage your content with WordPress.
Refresh preloaded cache files options will be set to zero by default, minimum required time is at least 30 minutes. Pre-loading your entire restaurant site takes some time and consumes a lot of resources on your server. You can leave it to 0 if you do not want your static files to expire ever unless you manually refresh cache.
That’s it. It’s that simple. You have done all the development & design, SEO and Speed Optimization works, now the time is up for launching your restaurant website to your audiences.