W3 Total Cache Tutorial
W3 total cache is a web page speed optimization plugin which can improve your visitor’s experience by increasing the speed of your WordPress site. It is among the most famous and widely used cache plugins for WordPress sites.
W3 total cache will also help with your SEO ranking in search engines. Search Engines like Google measure the website’s speed in ranking it in search results. A faster website is more likely to rank above the slow site.
Installing W3 Total Cache
Install w3 total cache the same way as you install other WordPress plugins. Download the plugin, upload it and activate it. Anyhow if you don’t know, here are the quick steps:
1). Download the plugin
2). Upload it through : Plugins -> Add New -> Upload -> Choose File -> Install.
3). Activate the plugin : Plugins -> Installed Plugins -> Activate (w3 total cache).
Configuring W3 Total Cache Settings
1. W3TC General Settings
Page Cache – Enabled
Page Cache Method – Disk Enhanced
Minify – Enable
Minify Mode – Manual
Minify Cache Method – Disk
Database Cache – Enabled
Database Cache Method- Disk
Object Cache – Enable
Object Cache Method – Disk
Browser Cache – Enable
CDN – Enable if you are using a CDN service else Disable
Varnish – Disable
Network Performance by Cloudfare – Enable if you use Cloudfare else Disable
2. W3TC Page Cache Settings
Page Cache – General
Cache Front page – Check
Cache feeds: site, categories, tags, comments – Check (Blogs running Feedburner – Uncheck)
Cache SSL (https) requests – Check
Cache URIs with query string variables – Uncheck
Cache 404 (not found) pages – Uncheck
Cache requests only for yoursite.com hostname – Check
Don’t cache pages for logged in users – Check
Don’t cache pages for following user roles – As per your choice
Page Cache – Cache Preload
Automatically Prime the Page Cache – Checked
Update Interval – 900
Pages per interval -10
Sitemap URL – URL of your blog’s xml sitemap. E.g. http://example.com/sitemap.xml
Page Cache – Purge Policy
No changes
Page Cache – Advanced
No Changes
3. W3TC Minify Settings
Minify can increase your site speed by removing the unnecessary comments and spaces from your html source files. Please keep in mind that this function may cause crash of your site sometimes. I would recommend you to consult your hosting provider before using this function.
Minify Settings – General, HTML & XML
Rewrite URL structure – Check
Minify Settings – HTML and XML
Enable – Check
Inline CSS minification – Check
Inline JS minification – Check
Don’t minify feeds – Check
Line break removal – Uncheck
Minify Settings – JS & CSS
JS minify settings – Check
Operation in area – Minify
Embed Type – Non-blocking using JS
All other options – Uncheck
CSS minify settings – Enable
Combine only – Disable
Preserved comment removal – Disable
Line break removal – Enable
@import Handling – Process
Minify Settings – Advanced
No change
4. W3TC Database Cache
No changes
5. W3TC Object Cache
No changes
6. W3TC Browser Cache
Browser Cache – General Settings
Set Last-Modified header – Check
Set expires header – Check
Set cache control header – Check
Set entity tag (eTag) – Uncheck
Set W3 Total Cache header – Check
Enable HTTP (gzip) compression – Check
Prevent caching of objects after settings change – Uncheck
Disable cookies for static files – Uncheck
Do not process 404 errors – Uncheck
Browser Cache – CSS & JS
Set Last-Modified header – Check
Set expires header – Check
Expires header lifetime – 31536000 seconds
Set cache control header – Check
Cache Control Policy: cache with max-age
Set entity tag (eTag) – Uncheck
Set W3 Total Cache header – Check
Enable HTTP (gzip) compression – Check
Prevent caching of objects after settings change – Disable
Disable cookies for static files – Check
Browser Cache – HTML and XML
Set Last-Modified header – Check
Set expires header – Check
Expires header lifetime – 3600 seconds
Set cache control header – Check
Cache Control Policy: cache with max-age
Set entity tag (eTag) – Uncheck
Set W3 Total Cache header – Check
Enable HTTP (gzip) compression – Check
Browser Cache – Media and other files
Set Last-Modified header – Check
Set expires header – Enable
Expires header lifetime – 31536000 seconds
Set cache control header – Enable
Cache Control Policy – cache with max-age
Set the entity tag (eTag) – Disable
Set W3 Total Cache header – Enable
Enable HTTP (gzip) compression – Enable
7. W3TC User Agents Group & Referer Groups
No changes
8. W3TC CDN
No changes for non CDN users. After configuring all the settings, Go back to General Settings & Hit Deploy. You will see a new message – “Preview settings deployed”. Click Disable to disable to preview mode and then click Empty all Cache. Finally, you are done and have successfully configured w3 total cache optimal settings on your blog.