All content in WordPress is served dynamically and generated using PHP. The content is then fetched from the MySQL database and sent to the user’s browser using PHP. When the server runs a PHP script to fetch the content, it consumes a lot of resources in terms of CPU usage and memory on the server computers. This will be a limiting factor for your website performance, especially if you have a high traffic blog (which you want). Caching, on the other hand, generates a static HTML file of every WordPress blog post, which alleviates the requirement of executing PHP scripts to serve content to your readers. With caching enabled, things run smoothly and quickly on the side of your users because there are no more complex database communications and script execution. This helps your WordPress blog load faster in any browser. With PHP execution operations at a minimum because of caching, you save a lot of precious CPU and memory usage for your WordPress server. WP Super Cache is therefore one of the most important plugins for WordPress, as it enables you to do just that.
The following steps will help you to install and setup WP Super Cache quickly and simply.
1. Log in to your WordPress dashboard and click on Plugins on the left menu panel. Then select Add New.
2. By searching “Super Cache” in the search option of that page, you will find “WP Super cache”.
3. Now select the option “Install now”. After installation, the “Activate Plugin” option will appear. Click on it and activate the plugin.
4. Then there will be a red box at the top with the dialogue “WP Super Cache is disabled. Please go to the plugin admin page to enable caching”. At this time click on the Plugin Admin Page.
5. To enable the cache click on the button to turn “Caching On” and then click “Update Status”.
6. On the same page of WP Super Cache settings, click on the “advanced” tab.
7. Here you need to select the “Use mod_rewrite to serve cache files” option and click “update status”.
8. Scroll down the page and you will find a large yellow box. Click on the button labeled “Update Mod_Rewrite Rules” at the bottom of the box.
9. It will change to green and be labeled “Mod rewrite rules updated”.
NOTE: To work properly, Permalink structure or a custom url is required for this plugin. We recommend changing to permalinks to make it more SEO friendly; you can follow our SEO Friendly URL Structure for WordPress article for better understanding.
How to verify that WP Super Cache is installed correctly
There are two ways to verify that WP Super Cache is installed correctly or not.
The first way:
- Logout from WordPress admin and clear all browser history and cache.
- Open a new tab in your browser and visit your homepage URL.
- From the WordPress screen, right click and select “View Page source”.
- View the source code and look at the last lines of the HTML source code.
The second way:
Check the .htaccess file. By using FTP client or through the file manager in cPanel, you can access the .htaccess file. In the same folder, look for the .htaccess file and open it. Here you will have code like the following image:
You should now have successfully installed and setup a WP Super Cache plugin correctly. With caching, your website can now serve high levels of traffic at lower resource usage. If you have one of our recommended web hosts for WordPress, you will be able to do this without any difficulty.