{"id":87,"date":"2023-04-28T13:02:24","date_gmt":"2023-04-28T17:02:24","guid":{"rendered":"https:\/\/kimsal.com\/blog\/?p=87"},"modified":"2023-04-28T13:02:24","modified_gmt":"2023-04-28T17:02:24","slug":"wordpress-redis-object-cache-breaking","status":"publish","type":"post","link":"https:\/\/kimsal.com\/blog\/2023\/04\/28\/wordpress-redis-object-cache-breaking\/","title":{"rendered":"WordPress Redis Object Cache breaking"},"content":{"rendered":"\n<p>Just worked through a small problem with a friend who had sporadic issues with the wordpress &#8220;redis object cache&#8221; plugin.  &#8220;socket read errors&#8221; were not uncommon, and sometimes &#8220;script already running&#8221; messages from redis itself.<\/p>\n\n\n\n<p>I didn&#8217;t quickly get a handle on what the plugin is trying to cache, or how, but my sense is that it was bundling a lot of data in one request.  The redis server in question was also set up to persist to disk.  This shouldn&#8217;t be something they need.  The source of the data is already in wordpress; the &#8216;caching&#8217; should only be being used to speed things up, but not fail if the data is missing (redis gets reset or the value is evicted, for example).<\/p>\n\n\n\n<p>Disabling persistence altogether (removing all &#8216;save&#8217; references in the redis.conf) *seems* to have resolved the issue.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Just worked through a small problem with a friend who had sporadic issues with the wordpress &#8220;redis object cache&#8221; plugin. &#8220;socket read errors&#8221; were not uncommon, and sometimes &#8220;script already running&#8221; messages from redis itself. I didn&#8217;t quickly get a handle on what the plugin is trying to cache, or how, but my sense is&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-87","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/kimsal.com\/blog\/wp-json\/wp\/v2\/posts\/87","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kimsal.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kimsal.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kimsal.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kimsal.com\/blog\/wp-json\/wp\/v2\/comments?post=87"}],"version-history":[{"count":0,"href":"https:\/\/kimsal.com\/blog\/wp-json\/wp\/v2\/posts\/87\/revisions"}],"wp:attachment":[{"href":"https:\/\/kimsal.com\/blog\/wp-json\/wp\/v2\/media?parent=87"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kimsal.com\/blog\/wp-json\/wp\/v2\/categories?post=87"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kimsal.com\/blog\/wp-json\/wp\/v2\/tags?post=87"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}