{"id":28,"date":"2007-07-29T00:56:39","date_gmt":"2007-07-29T04:56:39","guid":{"rendered":"http:\/\/blogs.n1zyy.com\/andrew\/2007\/07\/29\/pressing-wordpress\/"},"modified":"2007-07-29T00:56:39","modified_gmt":"2007-07-29T04:56:39","slug":"pressing-wordpress","status":"publish","type":"post","link":"https:\/\/blogs.n1zyy.com\/andrew\/2007\/07\/29\/pressing-wordpress\/","title":{"rendered":"Pressing WordPress"},"content":{"rendered":"<p><i>This post is designed to inspire our beloved server administrator to get some sort of caching installed.<\/i><\/p>\n<p>So I finally decided that enough was enough and I wasn&#8217;t going to wait until I spontaneously combusted with the motivation to build my own blogging\/CMS system and finish my site. Last night I downloaded WordPress and began hacking my design into their template framework.<\/p>\n<p>While testing it all out, I noticed that the responses seemed pretty slow. I wasn&#8217;t sure if it was the wireless network (I&#8217;d been wrangling with it a few hours earlier), so this evening I decided to do some benchmarking. I am something of a performance freak, after all. (So I lied about my intentions at the beginning of the post&#8230; who cares?) I&#8217;d already looked at some of the code (quite hideous, in my personal opinion), so I had a feeling things wouldn&#8217;t be pretty out of the box.<\/p>\n<p>I was right: the default installation managed a measly 4 requests per second. First I installed APC, which, under Ubuntu, requires installing the PEAR and php5-dev packages, then running <code>sudo pecl install apc<\/code>. The addition of byte-code caching pushed it up to 13 requests\/second. Clearly, the code was suffering from runtime &#8212; not compilation &#8212; issues.<\/p>\n<p>I didn&#8217;t have any real desire to delve too deep into the code, so I opted for the prebuilt <a href=\"http:\/\/wordpress.org\/extend\/plugins\/wp-cache\/\">WP-Cache<\/a> plugin. And this one was worth the money: just by enabling the plugin I jumped to nearly 500 requests\/second. Note that this is a 125 times better than I started with. (Out of curiosity, I also ran with caching on and APC off; about 200 requests\/second.)<\/p>\n<p>In short: if you&#8217;re running WordPress and you can\/have self respect (*grin*), install APC and WP-Cache.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This post is designed to inspire our beloved server administrator to get some sort of caching installed. So I finally decided that enough was enough and I wasn&#8217;t going to wait until I spontaneously combusted with the motivation to build my own blogging\/CMS system and finish my site. Last night I downloaded WordPress and began [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[],"class_list":["post-28","post","type-post","status-publish","format-standard","hentry","category-php"],"_links":{"self":[{"href":"https:\/\/blogs.n1zyy.com\/andrew\/wp-json\/wp\/v2\/posts\/28","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.n1zyy.com\/andrew\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.n1zyy.com\/andrew\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.n1zyy.com\/andrew\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.n1zyy.com\/andrew\/wp-json\/wp\/v2\/comments?post=28"}],"version-history":[{"count":0,"href":"https:\/\/blogs.n1zyy.com\/andrew\/wp-json\/wp\/v2\/posts\/28\/revisions"}],"wp:attachment":[{"href":"https:\/\/blogs.n1zyy.com\/andrew\/wp-json\/wp\/v2\/media?parent=28"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.n1zyy.com\/andrew\/wp-json\/wp\/v2\/categories?post=28"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.n1zyy.com\/andrew\/wp-json\/wp\/v2\/tags?post=28"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}