How to Fix a Slow WordPress Site on Windows 2012 IIS 8

While there are many ways to tune a WordPress installation on IIS, I have 4 performance tips:

  1. Install WordPress via Web Platform Installer (aka WebPI) 2.0 / Windows Web App Gallery.  http://www.microsoft.com/web/gallery/
    1. image
  2. Install/Activate/Configure W3 Total Cache plugin for WordPress
  3. Modify wp-config.php. 
    • Change define(‘DB_HOST’, ‘localhost’); to define(‘DB_HOST’, ’127.0.0.1′);
  4. Leverage browser caching by adding the <staticContent> to web.config.
<system.webServer>
...
<staticContent>
<clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="7.00:00:00" />
</staticContent>
</system.webServer>

 

Reference:

http://www.appliedi.net/blog/10-ways-to-improve-wordpress-performance-on-windows/

http://www.andrewdenhertog.com/web/solved-wordpress-slow-on-iis/

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s