1. Home
  2. Docs
  3. Zetatube
  4. W3 Total Cache

W3 Total Cache


Installing and Activating W3 Total Cache Plugin


Go to WP-Admin -> Plugins -> Add New, search for W3 Total Cache Plugin install and acctivate.

 

After the plugin activation you will get a new tab called “Performance” in the left admin menu.

Go to Performance -> General Settings and follow the steps below.

1. GENERAL SETTINGS


PAGE CACHE

  1. Page Cache: -> Enabled
  2. Page Cache Method: -> Disk: Enhanced

 

MINIFY

  1. Minify: -> Enabled
  2. Minify mode: -> Auto

 

 

DATABASE CACHE

  1. -> Enabled
  2. Database Cache Method: -> Disk

 

OBJECT CACHE

  1. Object Cache: -> Enabled
  2. Object Cache Method: -> Disk

 

BROWSER CACHE

Browser Cache: -> Enabled

 

Above we have skipped some sections, so you can keep the defaults on the sections that you do not see here in the General Settings Guide.

 

Now lets continue with the Page Cache the 3. menu item of Performance tab.

2. Page Cache Settings


  • Cache Posts Page –> Enable
  • Don’t cache front page –> Disable
  • Cache feeds: sites, catgeories, tags, comments –> Enable
  • Cache SSL (https) requests –> Enable (If you are using SSL)
  • Cache URIs with query string variables –> Enable
  • Cache 404 (not found) pages –> Disable
  • Cache requests only for the www.yoursite.com site address –> Enable
  • Don’t cache pages for logged in users –> Enable
  • Don’t cache pages for following user roles –> Disable

Cache Preload

  • Automatically prime the page cache –> Enable
  • Update interval –> 1000 seconds
  • Pages per interval –> 15 (If you are using VPS or Higher servers you can increase this number)
  • Sitemap URL –> Add your sitemap url.
  • Preload the post cache upon publish events –> Enable

Purge Policy –> Page Cache

  • Specify the pages and feeds to purge when posts are created, edited, or comments posted – Enable Homepage, Posts, Pages, Blog Pages, Blog feed.
  • Specify the feed types to purge –> Enable Rss2 (default)
  • Limit page purging –> 15 (If you are using VPS or Higher servers you can increase this number)
  • Purge sitemaps –> Leave it as default.

Advanced

  • Specify the pages and feeds to purge when posts are created, edited, or comments posted –> Enable Homepage, Posts, Pages, Blog Pages, Blog feed.
  • Specify the feed types to purge –> Enable Rss2 (default)
  • Limit page purging –> 15 (If you are using VPS or Higher servers you can increase this number)
  • Purge sitemaps –> Leave it as default.

3. Minify Settings


General

  • Rewrite URL structure – Disable
  • Disable minify for logged in users – Disable
  • Minify error notification – Disabled

HTML & XML

  • HTML minify settings – Disable
  • (Note: Our themes have their own html minifier function which works better than this.So, please keep this key disabled.)

JS

  • JS minify settings –> Enable
  • HTTP/2 PUSH -> Enable

CSS

  • CSS minify settings – Enable
  • @import handling – Select “None”.
  • HTTP/2 PUSH -> Enable

Advanced

  • Disable minify automatic file name length test – If you are getting this errir disable the “Minify Auto does not work properly”.
  • Filename length – 150
  • Update external files every – 216000 seconds
  • Garbage collection interval – 86400 seconds
  • Never minify the following pages – Leave it default.
  • Never minify the following JS files – Leave it default.
  • Never minify the following CSS files – Leave it default.
  • Rejected user agents – Leave it default.
  • – Leave it default.

4. Database Cache Settings


General

  • Don’t cache queries for logged in users – Enable

Advanced

  • Maximum lifetime of cache objects – 180 seconds
  • Garbage collection interval – 3600 seconds
  • Never cache the following pages – Leave it default.
  • Ignored query stems – Leave it default.
  • Reject query words – Leave it default.

5. Object Cache Settings


Advanced

  • Default lifetime of cache objects – 180 seconds
  • Garbage collection interval – 3600 seconds
  • Global groups – Leave it default.
  • Non-persistent groups – Leave it default.

6. Browser Cache Settings


General

  • Set Last-Modified header – Enable
  • Set expires header – Enable
  • Set cache control header – Enable
  • Set entity tag (eTag) – Enable
  • Set W3 Total Cache header – Enable
  • Enable HTTP (gzip) compression – Enable
  • Prevent caching of objects after settings change – Leave empty.
  • Prevent caching exception list – Leave empty.
  • Disable cookies for static files – Leave empty.
  • Do not process 404 errors for static objects with WordPress – Leave empty.
  • 404 error exception list – Leave it default.

CSS & JS

  • Set Last-Modified header – Enable
  • Set expires header – Enable
  • Expires header lifetime – 31536000 seconds
  • Set cache control header – Enable
  • Cache Control policy – Select “cache with max-age .
  • Set entity tag (eTag) – Enable
  • Set W3 Total Cache header – Enable
  • Enable HTTP (gzip) compression – Enable
  • Prevent caching of objects after settings change –Leave empty.
  • Disable cookies for static files – Leave empty.

HTML & XML

  • Set Last-Modified header – Enable
  • Set expires header – Enable
  • Expires header lifetime – 3200 seconds
  • Set cache control header – Enable
  • Cache Control policy – Select “cache with max-age ”.
  • Set entity tag (eTag) – Enable
  • Set W3 Total Cache header – Enable
  • Enable HTTP (gzip) compression – Enable
  • Prevent caching of objects after settings change – Leave empty.
  • Disable cookies for static files – Leave empty.

Media and Other Files

  • Set Last-Modified header – Enable
  • Set expires header – Enable
  • Expires header lifetime – 31536000 seconds
  • Set cache control header – Enable
  • Cache Control policy – Select “cache with max-age”.
  • Set entity tag (eTag) – Enable
  • Set W3 Total Cache header – Enable
  • Enable HTTP (gzip) compression – Enable
  • Prevent caching of objects after settings change – Leave empty.
  • Disable cookies for static files – Leave empty.

Security Headers

  • X-Frame-Options -> Same Origin

7. User Agent Groups Settings


  • Group name “High” – Enable it and leave everything as default.
  • Group name “Low” – Enable it and leave everything as default.

8. Referrer Groups Settings


Group name “search_engines” – Enable it and leave everything as default.

9. CDN


For the page speed cdn is very important, we can suggest MaxCDN.

IMAGE OPTIMIZATION:


For the pagespeed images are also very important we can recommend resmushit image optimizer plugin to optimize the images.

Was this article helpful to you? Yes No

How can we help?