{"id":204,"date":"2012-08-18T20:29:20","date_gmt":"2012-08-18T19:29:20","guid":{"rendered":"http:\/\/pjsmith.me.uk\/?p=204"},"modified":"2012-08-24T18:32:43","modified_gmt":"2012-08-24T17:32:43","slug":"wordpress-slow-after-moving-to-windows-2012","status":"publish","type":"post","link":"https:\/\/pjsmith.me.uk\/index.php\/2012\/08\/wordpress-slow-after-moving-to-windows-2012\/","title":{"rendered":"WordPress slow after moving to windows 2012"},"content":{"rendered":"<p>Here&#8217;s another issue I found after porting my sites to Windows 2012.\u00a0 Each page of this site was taking between 2.5 and 6 seconds to load.\u00a0 This turned out to be because the machine name, which I&#8217;d kept the same as the old server was resolving\u00a0 to an ipv6 address, not the ipv4 192.168.x.x I use for my subnet.\u00a0 It still worked\u00a0 fine, just much slower.\u00a0 I&#8217;m not yet sure why connections to MySql take so long via ipv6.\u00a0 I changed my configuration files to point to the local ipv4 address and page times are now &lt;500ms.\u00a0 In Word press, it&#8217;s just a matter of editing wp-config.php and updating the <em>define(&#8216;DB_HOST&#8217;, &#8216;192.168.x.x&#8217;);<\/em> line<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here&#8217;s another issue I found after porting my sites to Windows 2012.\u00a0 Each page of this site was taking between 2.5 and 6 seconds to load.\u00a0 This turned out to&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[5],"tags":[],"class_list":{"0":"post-204","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-tech"},"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/pjsmith.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/204","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pjsmith.me.uk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pjsmith.me.uk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pjsmith.me.uk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pjsmith.me.uk\/index.php\/wp-json\/wp\/v2\/comments?post=204"}],"version-history":[{"count":0,"href":"https:\/\/pjsmith.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/204\/revisions"}],"wp:attachment":[{"href":"https:\/\/pjsmith.me.uk\/index.php\/wp-json\/wp\/v2\/media?parent=204"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pjsmith.me.uk\/index.php\/wp-json\/wp\/v2\/categories?post=204"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pjsmith.me.uk\/index.php\/wp-json\/wp\/v2\/tags?post=204"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}