{"id":391,"date":"2018-01-06T15:49:58","date_gmt":"2018-01-06T20:49:58","guid":{"rendered":"https:\/\/www.clank.org\/blog\/?p=391"},"modified":"2018-01-06T15:49:58","modified_gmt":"2018-01-06T20:49:58","slug":"changing-strategies-for-wordpress-performance","status":"publish","type":"post","link":"https:\/\/www.clank.org\/blog\/2018\/01\/06\/changing-strategies-for-wordpress-performance\/","title":{"rendered":"Changing strategies for WordPress performance"},"content":{"rendered":"<p>Over the years I&#8217;ve tried a few different strategies to help with performance: more RAM, faster hardware, and a couple of different caching extensions. The most recent improvements came from a combination of running WordPress in Docker on a diskless RancherOS machine, together with one of the more popular caching extensions.<\/p>\n<p>This was good enough, but I wasn&#8217;t happy. The extension was complex both in terms of implementation and configuration. This seemed unnecessary; I set about looking for simpler alternatives, eventually settling on using a redis cache.<\/p>\n<p>Redis has several advantages in a Docker-based environment:<\/p>\n<ul>\n<li>It&#8217;s trivially easy to add a redis server;<\/li>\n<li>It&#8217;s easy to configure WordPress to use it, using <a href=\"https:\/\/wordpress.org\/plugins\/redis-cache\/\">Redis Object Cache<\/a>; and<\/li>\n<li>It&#8217;s fast.\u00a0<em>Very<\/em> fast.<\/li>\n<\/ul>\n<p>I haven&#8217;t made any attempt to run benchmarks, but so far it seems to provide a performance boost similar to the old, complex extension \u2013 without all the overhead. And that, I think, is a good thing.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Over the years I&#8217;ve tried a few different strategies to help with performance: more RAM, faster hardware, and a couple of different caching extensions. The most recent improvements came from a combination of running WordPress in Docker on a diskless RancherOS machine, together with one of the more popular caching extensions. This was good enough, [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"Changing strategies for Wordpress performance","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[4],"tags":[],"class_list":["post-391","post","type-post","status-publish","format-standard","hentry","category-geekstuff"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p706FA-6j","jetpack-related-posts":[],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/www.clank.org\/blog\/wp-json\/wp\/v2\/posts\/391","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.clank.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.clank.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.clank.org\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.clank.org\/blog\/wp-json\/wp\/v2\/comments?post=391"}],"version-history":[{"count":0,"href":"https:\/\/www.clank.org\/blog\/wp-json\/wp\/v2\/posts\/391\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.clank.org\/blog\/wp-json\/wp\/v2\/media?parent=391"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.clank.org\/blog\/wp-json\/wp\/v2\/categories?post=391"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.clank.org\/blog\/wp-json\/wp\/v2\/tags?post=391"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}