Caching is a great technique for speeding up your blog and the WordPress Site. Most Used two Best wp-cache plugin available in WordPress plugin repository- WP Super Cache and W3 Total Cache. You can use any of them depending on your needs.
WP Super Cache is a very fast and extensive caching tool for WordPress to store cached versions of your dynamic PHP pages. The plugin generates static pages for your dynamic WordPress website. Once the static files created, your web server will serve static files instead of performing database queries. As there are many options in wp super cache setting it’s not easy to set up easily many get confused regarding those settings. So in this tutorial, we’ll be discussing complete installation and setup of WP Super Cache settings.
Features of WP Super Cache
- The mobile support enables caching for mobile devices and tablets.
- Compress pages to reduce web page loading time.
- Provides Cache rebuild option that enables you to display cached pages even when new cache pages created.
Wp super cache tutorial
1.Install WP Super Cache
Install and activate the plugin. You can check our previous post to install a plugin in WordPress.Once you’ve installed and activated the plugin, you’ll see the result like below.
2.Setting up WP Super Cache
To enable cache, go to WP Super Cache setting Under the Easy tab, turn Caching on and hit 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 site twice and will compare the timestamps of both pages.
WP super cache is a powerful plugin, and it comes with many advanced options. These options can further improve your site’s performance.
First, check the box that says Cache hits to this website for quick access. Below you will see three caching options. By default, WP Super Cache uses PHP to serve cache files.
WP Super Cache will now show you a notification that mod_rewrite rules must be updated and possibly another information about scheduling garbage collection. Scroll down the page, and you will see mod_rewrite rules that need to add. Click on the Update Mod_Rewrite Rules button to update these rules. Once mod_rewrite rules updated this section will turn green.
To resolve the notice about garbage collection, In WP Super Cache setting 2019 go to 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.
4.Set CDN with the plugin
To setup CDN with the plugin, click on the CDN tab and enable the CDN support option. Next, enter your local URL or Offsite URL like http://cdn.test.alltechnerd.com/wp-includes/js/test.js.
If you’ve created other CNAMEs for your pull zone add them in Additional CNAMES field. To Avoid Mixed Content errors tick the Skip https URLs to avoid “mixed content” errors.
Now click on Save Changes.
4.Preload Cache Settings
The preload mode will create super cache static files for all your posts and pages and serve a static website
Refresh preload cache data options will set to zero by default, the least required time is at least 30 minutes. Pre-loading your entire WordPress site takes some time and consumes a lot of resources on your server. You can leave it at 0 if you do not want your static files to expire ever unless you manually refresh the cache. This caches each post and pages on your website and serves the static website which is important to speed up your website.
Once Done recheck all your settings and click on preload cache now, save the settings. After some time you ‘ll see the improvement in your website speed. To check your website speed you can use the Pingdom speed test tool. Your site should be considerably faster than before. If you’ve got any queries then feel free to ask us in the comment section.