W3 Total Cache Configuration – Guide


Caching WordPress

The best way to configure w3 total cache for your wordpress site

Many customers in our store do not use a cache plugin and its totaly wrong because a cache plugin will increase your page speed and will effect on many things like page spee, seo etc.

Below I created a mini tutorial with the best configuration of w3 total cache.First of all install and activate w3 total cache plugin for wordpress!

Lets go:

  1. Go to the w3 total cache settings page and start by enabling the page cache:

 

 

 

 

 

 

 

 

2.  Minify

  • Minify – Enable
  • Minify Mode – Select “Manual” minify mode and “Disk”.
  • Minify Cache Method – Select “Disk” as a cache mode. if you are a VPS user its good to choose also “Opcode: Alternative PHP Cache” .
  • HTML Minifier – Select “Default”.
  • JS minifier – Select “JSMin (default)”.
  • CSS minifier – Select “Default”.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

3. Database Cache

  • Database Cache– Enable  – Note: if you are Ningx / Varnish user is better to keep it disabled.
  • Database Cache Method – Select “Disk”. Note: If you are using VPS “Opcode: Alternative PHP cache” is a better choice.

 

 

 

 

 

 

 

 

4.Object Cache

  • Object Cache –  Enable
  • Object Cache Method – Select “Disk”. Choose “Opcode: Alternative PHP cache” if you are using VPS.

 

 

 

 

 

 

 

 

5. Browser Cache – its enabled by default and must be enabled!

 

 

 

 

 

 

6. Reserve Proxy and Monitoring – Forget these!

Advanced Settings Configuration

1. Page Cache – Advanced

 

 

 

 

 

 

 

 

 

 

 

General

  • 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.

 

2. Minify – Advanced Settings

General

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

HTML & XML

  • HTML minify settings – Enable (Note: If you are using are tube themes disable it.)
  • Inline CSS minification – Enable
  • Inline JS minification – Enable (Note: If you are using are tube themes disable it.)
  • Don’t minify feeds – Uncheck the box if its checked.
  • Line Break Removal – Uncheck the box if its checked.
  • Ignored comment stems – Keep default options.

JS

  • JS minify settings –  Enable (Note: If you are using are tube themes disable it.)
  • Operations in areas – “Minify” and Enable
  • Preserved comment removal – Enable
  • Line break removal – Enable

CSS

  • CSS minify settings –  Enable (If it causing problems on your site change it to disabled again, its possible!).
  • Combine Only – Uncheck the box if its checked.
  • Preserved comment removal (not applied when combine only is active) – Enable
  • Line break removal (not applied when combine only is active)  –  Enable
  • @import handling – Select “None”.

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.

3. Database Cache – Advanced 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.

4. Object Cache – Advanced 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.

5. Browser Cache – Advanced 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.

6. User Agent Groups – Advanced Settings

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

7. Referrer Groups – Advanced Settings

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

8. CDN

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

 

adult wordpress themes