Tentang Plugin WP Super Cache
Plugin ini adalah salah satu plugin terbaik untuk meningkatkan kecepatan loading web versi saya. Jadi mungkin belum tentu menurut blogger yang lain. Plugin wp super cache berfungsi untuk mengoptimalkan blog wordpress. Sehingga blog akan terasa lebih ringan saat loading di browser.
WP Super Cache is a plugin for WordPress that generates static HTML pages from your dynamic WordPress blog. Once static pages are generated, those pages are displayed to visitors, using less server resources than dynamic webpages.
For busy websites running WordPress, I recommends that a caching plugin, such as WP Super Cache be enabled. This will allow your website to handle more simultaneous visitors and also typically loads much faster than without the caching plugin.
Cara Setting WP Super Cache
Untuk mendapatkan hasil yang sempurna dari fungsi Plugin wp super cache ini, penting sekali melakukan setting yang benar. Setting yang salah akan mengakibatkan tidak optimalnya manfaat dari plugin ini.
Bagaimana cara setting yang benar dari Plugin wp super cache? Yuk simak 4 langkah-langkah berikut ini :
Step 1. Set General Settings
On “Advanced” tab:
- Check box next to “Cache hits to this website…”
- Select button next to “Use mod_rewrite to serve cache files”
- Check box next to “Compress Pages”
- Check box next to “304 Not Modified browser caching”
- Check box next to “Don’t cache pages for known users”
- “Cache rebuild” & “Extra homepage checks” should already be checked, leave them that way.
- Select “Update Status” button.
Step 2. Set Mod_Rewrite Rules
Then, scroll down and select “Update Mod_Rewrite Rules” in the yellow box.
Step 3. Set Garbage Collection
Scroll down to “Expiry Time & Garbage Collection” and enter “3600” in the box, then select “Change Expiration”
Step 4. Set Rejected User Agents
It is recommended that you do not remove the default user agents from the list, to prevent bots from caching content and pages not normally seen by your visitors.
Explanation of the Options Selected
Cache hits to this website…
Use mod_rewrite to serve cache files
Fastest caching method, uses mod_rewrite rules in client’s .htaccess file
Super Cache files are compressed and stored that way so the heavy compression is done only once. These files are generally much smaller and are sent to a visitor’s browser much more quickly than uncompressed html. As a result, the server spends less time talking over the network which saves CPU time and bandwidth, and can also serve the next request much more quickly.
304 Not Modified browser caching
Indicates to the client’s browser whether a requested file has been modified or not or elsewhere for more info on that apache code)
Don’t cache pages for known users
This prevents logged-in users from being served cached pages and is the default for almost every caching plugin out there.
Expiry Time & Garbage Collection
The default setting will allow cache files to age 1 hour (3600 seconds) prior to being removed which is ideal. This setting can be increased for sites that do not have many posts (1,000 or less ) if you do not update your content often. If you have a very large amount of posts ( 25,000+ ), a lower setting around 1800 may be more viable to prevent stat/CPU issues due to the amount of files being created.
Rejected User Agents
It is recommended that you do not remove the default user agents from the list, to prevent bots from caching content and pages not normally seen by your visitors. (For example, if you have a calendar, a real visitor may only browse months close to now, but a bot will index every month forever as if it is a different page. Caching these pages real visitors are unlikely to visit wastes resources.)