Site icon naschenweng.info

WordPress plugin – W3 Total Cache

Once your WordPress installation is up and running and you are satisfied with the plugins and themes you have installed, it’s time to optimize your installation for performance.

I would leave this task as the last step in any blog-installation, as caching can break themes or plugins and it is much easier to get your blog up and running and then tweak the installation afterwards.

Amongst all the various plugins I reviewed, W3 Total Cache improves the user experience of your site by improving your server performance, caching every aspect of your site, reducing the download times and providing transparent content delivery network (CDN) integration.

W3 Total cache gives you:

Installation and configuration can be overwhelming and your success depends on your hosting provider. Although W3 Total Cache offers a number of accelerators – disk based, eAccelerator, Opcode caching, there is a good chance that those caching mechanisms are not offered out-of-the-box by your hosting provider (especially in a shared hosting environment).
I chose a virtual server hosting plan with eApps.com, which comes with unlimited databases, custom PHP configurations, mail, DNS and a variety of other options and had little problem installing extra packages to support W3 Total Cache fully.
Once W3 Total Cache is installed, it provides the following optimizations and settings:
  • General: I suggest that you click on the “Compatibility Check” button first to verify your server installation and fix any dependencies. Start of first with “Page Cache” enabled and leave all other optimization options disabled. I found it easier to enable option after option to rule out any issues. Also make sure that you use Firebug to identify any Javascript or 404-errors you might experience.

    The Caching Method depends on your hosting provider and PHP configuration. Try at least to have “Disk: Enhanced” working, but in most cases “Disk: Basic” will already provide a substantial improvement.

  • Page Cache: Allows you to cache pages and page fragments. This will provide you the biggest performance boost. Tick everything except “Cache SSL (https) requests”, “Cache URIs with query string variables”, “Cache 404 (not found) pages”. If you are running WPtouch you will also need to exclude user agents for WPtouch to properly work.
  • Minify: Minifies your CSS and JS and compresses the files, reducing the number of requests for a page to load. This option is the most beneficial, but also the most frustrating, as many plugins can break. I did find that the automatic minification did not work, and switched to manual mode. Under “HTML & XML” select everything except “Don’t minify feeds”. For JS and CSS manually specify the files and sort them the appropriate order. Best way to achieve this is to view the page-source and then find “.JS” and “.CSS” files and then add the relative path. I only minify files hosted on my server.
  • Database Cache: I have not enabled this option.
  • Object Cache: I have enabled this option.
  • Browser Caching: I have enabled all options except “Prevent caching of objects after settings change”, “Do not process 404 errors for static objects with WordPress” for all settings.
As you toggle the various caching options on, you will need to validate that your blog still renders and that plugins still function. You might have to play with the placement of JS files and CSS in the manual minify settings to avoid any CSS clashes.
The performance improvement is quite substantial and my homepage loads according to Google GWMT under 1 second. I have deliberately left off the CDN and CloudFlare functions, as W3 Total Cache needs to work properly first before taking the next step.
Exit mobile version