{"id":11862,"date":"2026-05-25T09:45:40","date_gmt":"2026-05-25T00:45:40","guid":{"rendered":"https:\/\/kusanagi.tokyo\/column?p=11862"},"modified":"2026-05-25T09:45:42","modified_gmt":"2026-05-25T00:45:42","slug":"wordpress%e3%81%abredis-object-cache%e3%83%97%e3%83%a9%e3%82%b0%e3%82%a4%e3%83%b3%e3%82%92%e5%b0%8e%e5%85%a5%e3%81%97%e3%81%a6%e9%ab%98%e9%80%9f%e5%8c%96%e3%81%99%e3%82%8b%e6%89%8b%e9%a0%86","status":"publish","type":"post","link":"https:\/\/kusanagi.tokyo\/column\/archives\/column_11862","title":{"rendered":"WordPress\u306bRedis Object Cache\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u5c0e\u5165\u3057\u3066\u9ad8\u901f\u5316\u3059\u308b\u624b\u9806"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\">1. \u306f\u3058\u3081\u306b<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">\u30d7\u30e9\u30a4\u30e0\u30fb\u30b9\u30c8\u30e9\u30c6\u30b8\u30fc\u300cKUSANAGI\u300d\u958b\u767a\u30c1\u30fc\u30e0\u306e\u8b1d\u3067\u3059\u3002<br>WordPress\u30b5\u30a4\u30c8\u3092\u904b\u7528\u3057\u3066\u3044\u308b\u3068\u3001\u30a2\u30af\u30bb\u30b9\u6570\u306e\u5897\u52a0\u3068\u3068\u3082\u306b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3078\u306e\u554f\u3044\u5408\u308f\u305b\u56de\u6570\u304c\u5897\u3048\u3001\u5fdc\u7b54\u901f\u5ea6\u306e\u4f4e\u4e0b\u3092\u5b9f\u611f\u3059\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u30da\u30fc\u30b8\u30ad\u30e3\u30c3\u30b7\u30e5\u306b\u3088\u308b\u9759\u7684\u30d5\u30a1\u30a4\u30eb\u914d\u4fe1\u304c\u6709\u52b9\u306a\u5834\u9762\u306f\u591a\u3044\u3067\u3059\u304c\u3001\u30ed\u30b0\u30a4\u30f3\u30e6\u30fc\u30b6\u30fc\u304c\u591a\u3044\u30b5\u30a4\u30c8\u30fbEC\u30b5\u30a4\u30c8\u30fb\u4f1a\u54e1\u30b5\u30a4\u30c8\u306a\u3069\u3001\u30da\u30fc\u30b8\u30ad\u30e3\u30c3\u30b7\u30e5\u304c\u9069\u7528\u3055\u308c\u306a\u3044\u30b1\u30fc\u30b9\u3067\u306f\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30af\u30a8\u30ea\u56de\u6570\u305d\u306e\u3082\u306e\u3092\u6e1b\u3089\u3059\u30a2\u30d7\u30ed\u30fc\u30c1\u304c\u91cd\u8981\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u305d\u3053\u3067\u6ce8\u76ee\u3055\u308c\u308b\u306e\u304c\u300cObject Cache\uff08\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30ad\u30e3\u30c3\u30b7\u30e5\uff09\u300d\u3067\u3059\u3002\u672c\u8a18\u4e8b\u3067\u306f\u3001Redis \u3092\u4f7f\u3063\u305f Object Cache \u306e\u4ed5\u7d44\u307f\u3068\u3001\u300cRedis Object Cache\u300d\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u7528\u3044\u305f WordPress \u3078\u306e\u5c0e\u5165\u624b\u9806\u3092\u3001\u524d\u63d0\u78ba\u8a8d\u304b\u3089\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c8\u307e\u3067\u9806\u3092\u8ffd\u3063\u3066\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><strong>\u5bfe\u8c61\u74b0\u5883\u30fb\u5bfe\u8c61\u8aad\u8005<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>KUSANAGI 9\uff08AlmaLinux 9\uff09<\/strong> \u4e0a\u3067 WordPress \u3092\u904b\u7528\u3057\u3066\u3044\u308b\u65b9<\/li>\n\n\n\n<li>KUSANAGI \u306efcache\uff08FastCGI \u30ad\u30e3\u30c3\u30b7\u30e5\uff09 \u3001bcache\uff08\u30da\u30fc\u30b8\u30ad\u30e3\u30c3\u30b7\u30e5\uff09\u3068\u306f\u5225\u306b\u3001DB \u8ca0\u8377\u3092\u524a\u6e1b\u3057\u305f\u3044\u65b9<\/li>\n\n\n\n<li>Redis Object Cache \u306e\u5c0e\u5165\u3092\u691c\u8a0e\u3057\u3066\u3044\u308b\u30b5\u30fc\u30d0\u30fc\u7ba1\u7406\u8005\u30fb\u30a8\u30f3\u30b8\u30cb\u30a2<\/li>\n<\/ul>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"2_Redis_Object_Cache_%E3%81%A8%E3%81%AF\"><\/span>2. Redis Object Cache \u3068\u306f<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"WordPress_%E3%81%AE_Object_Cache_%E3%81%AE%E4%BB%95%E7%B5%84%E3%81%BF\"><\/span>WordPress \u306e Object Cache \u306e\u4ed5\u7d44\u307f<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">WordPress \u306f\u30ea\u30af\u30a8\u30b9\u30c8\u3054\u3068\u306b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3078\u30af\u30a8\u30ea\u3092\u767a\u884c\u3057\u3001\u6295\u7a3f\u30fb\u8a2d\u5b9a\u30fb\u30e6\u30fc\u30b6\u30fc\u60c5\u5831\u306a\u3069\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\u540c\u4e00\u30ea\u30af\u30a8\u30b9\u30c8\u5185\u3067\u540c\u3058\u30c7\u30fc\u30bf\u304c\u4f55\u5ea6\u3082\u5fc5\u8981\u306b\u306a\u308b\u5834\u5408\u3001WordPress \u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u300c\u30a4\u30f3\u30e1\u30e2\u30ea\u306e\u4e00\u6642\u30ad\u30e3\u30c3\u30b7\u30e5\uff08Non-Persistent Object Cache\uff09\u300d\u3092\u4f7f\u3063\u3066\u91cd\u8907\u30af\u30a8\u30ea\u3092\u907f\u3051\u308b\u4ed5\u7d44\u307f\u3092\u6301\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3057\u304b\u3057\u3053\u306e\u30ad\u30e3\u30c3\u30b7\u30e5\u306f <strong>\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u7d42\u308f\u308b\u3068\u7834\u68c4<\/strong> \u3055\u308c\u307e\u3059\u3002\u3064\u307e\u308a\u6b21\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3067\u306f\u518d\u5ea6\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u30af\u30a8\u30ea\u3092\u6295\u3052\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E6%B0%B8%E7%B6%9A%E7%9A%84%E3%81%AA_Object_Cache%EF%BC%88Persistent_Object_Cache%EF%BC%89\"><\/span>\u6c38\u7d9a\u7684\u306a Object Cache\uff08Persistent Object Cache\uff09<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Redis Object Cache \u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u5c0e\u5165\u3059\u308b\u3068\u3001WordPress \u306e Object Cache \u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u3068\u3057\u3066 Redis \u3092\u4f7f\u7528\u3059\u308b <code>object-cache.php<\/code> \u3092 <code>wp-content\/<\/code> \u306b\u8a2d\u7f6e\u3057\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u30ad\u30e3\u30c3\u30b7\u30e5\u304c <strong>\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u307e\u305f\u3044\u3067\u6c38\u7d9a\u5316<\/strong> \u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\u30ea\u30af\u30a8\u30b9\u30c8 A \u2192 Redis \u306b\u30c7\u30fc\u30bf\u304c\u5b58\u5728\u3057\u306a\u3044 \u2192 DB \u306b\u30af\u30a8\u30ea \u2192 Redis \u306b\u4fdd\u5b58\n\u30ea\u30af\u30a8\u30b9\u30c8 B \u2192 Redis \u306b\u30c7\u30fc\u30bf\u304c\u5b58\u5728\u3059\u308b  \u2192 Redis \u304b\u3089\u53d6\u5f97\uff08DB \u30af\u30a8\u30ea\u306a\u3057\uff09\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Redis \u306f\u30aa\u30f3\u30e1\u30e2\u30ea\u306e\u30ad\u30fc\u30d0\u30ea\u30e5\u30fc\u30b9\u30c8\u30a2\u3067\u3042\u308a\u3001\u30c7\u30a3\u30b9\u30af IO \u3092\u4f34\u3046\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30a2\u30af\u30bb\u30b9\u306b\u6bd4\u3079\u3066\u6841\u9055\u3044\u306b\u9ad8\u901f\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"KUSANAGI_%E3%81%AE_fcache%E3%83%BBbcache_%E3%81%A8%E3%81%AE%E9%96%A2%E4%BF%82\"><\/span>KUSANAGI \u306e fcache\u30fbbcache \u3068\u306e\u95a2\u4fc2<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">KUSANAGI 9 \u306b\u306f <strong>fcache<\/strong> \u3068 <strong>bcache<\/strong> \u3068\u3044\u3046 2 \u7a2e\u985e\u306e\u30da\u30fc\u30b8\u30ad\u30e3\u30c3\u30b7\u30e5\u6a5f\u80fd\u304c\u6a19\u6e96\u642d\u8f09\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3069\u3061\u3089\u3082\u30da\u30fc\u30b8\u5168\u4f53\u306e HTML \u3092\u30ad\u30e3\u30c3\u30b7\u30e5\u3057\u3066\u518d\u5229\u7528\u3059\u308b\u3053\u3068\u3067\u8868\u793a\u3092\u9ad8\u901f\u5316\u3057\u307e\u3059\u304c\u3001\u52d5\u4f5c\u3059\u308b\u30ec\u30a4\u30e4\u30fc\u3068\u4ed5\u7d44\u307f\u304c\u7570\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>fcache\uff08FastCGI \u30ad\u30e3\u30c3\u30b7\u30e5\uff09<\/strong>\u306f\u3001nginx \u304c PHP-FPM\uff08FastCGI\uff09\u306e\u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u30b5\u30fc\u30d0\u30fc\u306e\u30e1\u30e2\u30ea\u30fb\u30c7\u30a3\u30b9\u30af\u306b\u30ad\u30e3\u30c3\u30b7\u30e5\u3059\u308b\u4ed5\u7d44\u307f\u3067\u3059\u3002PHP \u3084 WordPress \u306e\u30d7\u30ed\u30bb\u30b9\u81ea\u4f53\u3092\u8d77\u52d5\u305b\u305a\u306b nginx \u304c\u76f4\u63a5\u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u8fd4\u3059\u305f\u3081\u30013 \u3064\u306e\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u4e2d\u3067\u6700\u3082\u9ad8\u901f\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>bcache\uff08WordPress \u30da\u30fc\u30b8\u30ad\u30e3\u30c3\u30b7\u30e5\uff09<\/strong>\u306f\u3001KUSANAGI \u5c02\u7528\u30d7\u30e9\u30b0\u30a4\u30f3\u304c WordPress \u306e\u7d44\u307f\u8fbc\u307f\u30ad\u30e3\u30c3\u30b7\u30e5\u6a5f\u69cb\u3092\u5229\u7528\u3057\u3066\u30da\u30fc\u30b8 HTML \u3092\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u4fdd\u5b58\u3059\u308b\u4ed5\u7d44\u307f\u3067\u3059\u3002PHP \u30ec\u30d9\u30eb\u3067\u52d5\u4f5c\u3059\u308b\u305f\u3081 fcache \u3088\u308a\u51e6\u7406\u30b3\u30b9\u30c8\u306f\u304b\u304b\u308a\u307e\u3059\u304c\u3001WordPress \u5074\u3067\u30ad\u30e3\u30c3\u30b7\u30e5\u5236\u5fa1\uff08\u8a18\u4e8b\u516c\u958b\u6642\u306e\u30ad\u30e3\u30c3\u30b7\u30e5\u524a\u9664\u306a\u3069\uff09\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Redis Object Cache<\/strong>\u306f\u3001\u3053\u308c\u3089 2 \u3064\u3068\u306f\u6839\u672c\u7684\u306b\u7570\u306a\u308b\u5f79\u5272\u3092\u62c5\u3044\u307e\u3059\u3002\u30da\u30fc\u30b8\u5168\u4f53\u3092\u30ad\u30e3\u30c3\u30b7\u30e5\u3059\u308b\u306e\u3067\u306f\u306a\u304f\u3001<strong>MariaDB \u3078\u306e\u30af\u30a8\u30ea\u7d50\u679c\u3084 PHP \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u307e\u305f\u3044\u3067 Redis \u306b\u4fdd\u6301<\/strong>\u3059\u308b\u3053\u3068\u3067\u3001DB \u3078\u306e\u554f\u3044\u5408\u308f\u305b\u56de\u6570\u3092\u524a\u6e1b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>-<\/th><th>fcache<\/th><th>bcache<\/th><th>Redis Object Cache<\/th><\/tr><\/thead><tbody><tr><td>\u52d5\u4f5c\u30ec\u30a4\u30e4\u30fc<\/td><td>nginx\uff08FastCGI \u30ad\u30e3\u30c3\u30b7\u30e5\uff09<\/td><td>PHP \/ WordPress \u30d7\u30e9\u30b0\u30a4\u30f3<\/td><td>PHP \/ WordPress Object Cache<\/td><\/tr><tr><td>\u30ad\u30e3\u30c3\u30b7\u30e5\u5bfe\u8c61<\/td><td>PHP \u304c\u751f\u6210\u3057\u305f HTML \u30da\u30fc\u30b8\u5168\u4f53<\/td><td>PHP \u304c\u751f\u6210\u3057\u305f HTML \u30da\u30fc\u30b8\u5168\u4f53<\/td><td>DB \u30af\u30a8\u30ea\u7d50\u679c\u30fbPHP \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/td><\/tr><tr><td>\u30ad\u30e3\u30c3\u30b7\u30e5\u4fdd\u5b58\u5148<\/td><td>\u30c7\u30a3\u30b9\u30af<\/td><td>MariaDB\uff08WordPress DB \u5185\uff09<\/td><td>Redis\uff08\u30aa\u30f3\u30e1\u30e2\u30ea\uff09<\/td><\/tr><tr><td>\u901f\u5ea6<\/td><td>\u6700\u901f\uff08PHP\u30fbWordPress \u4e0d\u8981\uff09<\/td><td>\u4e2d\u901f\uff08PHP \u304c\u51e6\u7406\uff09<\/td><td>\u30fc\uff08DB \u8ca0\u8377\u8efd\u6e1b\u304c\u4e3b\u76ee\u7684\uff09<\/td><\/tr><tr><td>\u52b9\u679c\u304c\u51fa\u308b\u5834\u9762<\/td><td>\u672a\u30ed\u30b0\u30a4\u30f3\u30e6\u30fc\u30b6\u30fc\u306e\u30d5\u30ed\u30f3\u30c8\u95b2\u89a7<\/td><td>\u672a\u30ed\u30b0\u30a4\u30f3\u30e6\u30fc\u30b6\u30fc\u306e\u30d5\u30ed\u30f3\u30c8\u95b2\u89a7<\/td><td>\u7ba1\u7406\u753b\u9762\u30fb\u30ed\u30b0\u30a4\u30f3\u30e6\u30fc\u30b6\u30fc\u30fb\u52d5\u7684\u30da\u30fc\u30b8<\/td><\/tr><tr><td>\u30ed\u30b0\u30a4\u30f3\u30e6\u30fc\u30b6\u30fc\u3078\u306e\u9069\u7528<\/td><td>\u00d7\uff08Cookie \u691c\u51fa\u3067\u81ea\u52d5\u30d0\u30a4\u30d1\u30b9\uff09<\/td><td>\u00d7<\/td><td>\u3007<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">fcache\u30fbbcache\u30fbRedis Object Cache \u306f\u305d\u308c\u305e\u308c\u72ec\u7acb\u3057\u3066\u52d5\u4f5c\u3057\u3001\u7af6\u5408\u3057\u307e\u305b\u3093\u30023 \u3064\u3092\u7d44\u307f\u5408\u308f\u305b\u308b\u3053\u3068\u3067 WordPress \u306e\u5fdc\u7b54\u901f\u5ea6\u3092\u6700\u5927\u9650\u306b\u5f15\u304d\u4e0a\u3052\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u672a\u30ed\u30b0\u30a4\u30f3\u30e6\u30fc\u30b6\u30fc\uff08fcache HIT \u6642\uff09<\/strong>\uff1anginx \u304c PHP\u30fbWordPress\u30fbRedis \u3092\u4e00\u5207\u4ecb\u3055\u305a\u306b\u76f4\u63a5\u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u8fd4\u3059\u3002\u6700\u901f\u306e\u30d1\u30b9\u3002<\/li>\n\n\n\n<li><strong>\u672a\u30ed\u30b0\u30a4\u30f3\u30e6\u30fc\u30b6\u30fc\uff08bcache HIT \u6642\uff09<\/strong>\uff1aWordPress \u304c PHP \u3067\u51e6\u7406\u3059\u308b\u304c\u3001DB \u306b\u306f\u554f\u3044\u5408\u308f\u305b\u305a\u306b\u30ad\u30e3\u30c3\u30b7\u30e5\u6e08\u307f HTML \u3092\u8fd4\u3059\u3002Redis Object Cache \u304c DB \u8ca0\u8377\u306e\u8efd\u6e1b\u3092\u88dc\u5b8c<\/li>\n\n\n\n<li><strong>\u30ed\u30b0\u30a4\u30f3\u30e6\u30fc\u30b6\u30fc\u30fb\u7ba1\u7406\u753b\u9762<\/strong>\uff1afcache\u30fbbcache \u306f\u3068\u3082\u306b\u30d0\u30a4\u30d1\u30b9\u3055\u308c WordPress \u304c\u30d5\u30eb\u51e6\u7406\u3059\u308b\u3002\u3053\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3067 Redis Object Cache \u304c DB \u30af\u30a8\u30ea\u3092\u524a\u6e1b\u3057\u3001\u30ec\u30b9\u30dd\u30f3\u30b9\u6539\u5584\u306b\u8ca2\u732e<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"3_%E5%B0%8E%E5%85%A5%E3%81%99%E3%82%8B%E3%83%A1%E3%83%AA%E3%83%83%E3%83%88\"><\/span>3. \u5c0e\u5165\u3059\u308b\u30e1\u30ea\u30c3\u30c8<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\u30e1\u30ea\u30c3\u30c8<\/th><th>\u8aac\u660e<\/th><\/tr><\/thead><tbody><tr><td>DB \u30af\u30a8\u30ea\u524a\u6e1b<\/td><td>\u540c\u4e00\u30c7\u30fc\u30bf\u306e\u91cd\u8907\u30af\u30a8\u30ea\u3092 Redis \u304c\u5438\u53ce\u3057\u3001MariaDB \u3078\u306e\u8ca0\u8377\u3092\u5927\u5e45\u306b\u4f4e\u6e1b<\/td><\/tr><tr><td>\u7ba1\u7406\u753b\u9762\u306e\u9ad8\u901f\u5316<\/td><td>fcache\u3001bcache \u304c\u52b9\u304b\u306a\u3044\u7ba1\u7406\u753b\u9762\u306e\u30ec\u30b9\u30dd\u30f3\u30b9\u5411\u4e0a\u306b\u76f4\u7d50<\/td><\/tr><tr><td>\u30ed\u30b0\u30a4\u30f3\u30e6\u30fc\u30b6\u30fc\u5bfe\u5fdc<\/td><td>EC \u30b5\u30a4\u30c8\u3084\u4f1a\u54e1\u30b5\u30a4\u30c8\u306a\u3069\u3001\u30da\u30fc\u30b8\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u4f7f\u3048\u306a\u3044\u74b0\u5883\u3067\u3082\u52b9\u679c\u3092\u767a\u63ee<\/td><\/tr><tr><td>\u9ad8\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u8010\u6027<\/td><td>\u30a2\u30af\u30bb\u30b9\u96c6\u4e2d\u6642\u306b DB \u304c\u30dc\u30c8\u30eb\u30cd\u30c3\u30af\u306b\u306a\u308b\u30ea\u30b9\u30af\u3092\u8efd\u6e1b<\/td><\/tr><tr><td>KUSANAGI \u3068\u306e\u76f8\u6027<\/td><td>KUSANAGI 9 \u306b\u306f Redis \u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u7528\u610f\u3055\u308c\u3066\u304a\u308a\u3001\u8ffd\u52a0\u30ea\u30dd\u30b8\u30c8\u30ea\u306a\u3057\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u53ef\u80fd<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u26a0\ufe0f \u4f1a\u54e1\u30b5\u30a4\u30c8\u3078\u5c0e\u5165\u3059\u308b\u5834\u5408\u306e\u6ce8\u610f<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Redis Object Cache \u306f\u3001<strong>\u30e6\u30fc\u30b6\u30fc\u306e\u6a29\u9650\u3084\u30ed\u30fc\u30eb\u3092\u533a\u5225\u305b\u305a\u306b\u30c7\u30fc\u30bf\u3092\u30ad\u30e3\u30c3\u30b7\u30e5\u3057\u307e\u3059\u3002<\/strong> \u3053\u306e\u305f\u3081\u3001\u4f1a\u54e1\u30e9\u30f3\u30af\u30fb\u30ed\u30fc\u30eb\u3054\u3068\u306b\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u51fa\u3057\u5206\u3051\u308b\u30b5\u30a4\u30c8\u3078\u5c0e\u5165\u3059\u308b\u969b\u306f\u4ee5\u4e0b\u306e\u70b9\u306b\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u4f1a\u54e1\u6a29\u9650\u306b\u3088\u3063\u3066\u5185\u5bb9\u304c\u5909\u308f\u308b\u30c7\u30fc\u30bf\uff08\u6709\u6599\u4f1a\u54e1\u5411\u3051\u30b3\u30f3\u30c6\u30f3\u30c4\u30fb\u30e6\u30fc\u30b6\u30fc\u56fa\u6709\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u5024\u306a\u3069\uff09\u3092\u305d\u306e\u307e\u307e\u30ad\u30e3\u30c3\u30b7\u30e5\u3059\u308b\u3068\u3001<strong>\u7570\u306a\u308b\u6a29\u9650\u306e\u30e6\u30fc\u30b6\u30fc\u9593\u3067\u30c7\u30fc\u30bf\u304c\u6df7\u5728\u3059\u308b\u30ea\u30b9\u30af\u304c\u3042\u308b<\/strong><\/li>\n\n\n\n<li>MemberPress\u30fbWooCommerce Memberships\u30fbUltimate Member \u306a\u3069\u306e\u4f1a\u54e1\u7ba1\u7406\u30d7\u30e9\u30b0\u30a4\u30f3\u306f\u72ec\u81ea\u306e\u30ad\u30e3\u30c3\u30b7\u30e5\u30b0\u30eb\u30fc\u30d7\u3092\u6301\u3064\u3053\u3068\u304c\u591a\u304f\u3001<strong>\u30d7\u30e9\u30b0\u30a4\u30f3\u5074\u306e Object Cache \u5bfe\u5fdc\u72b6\u6cc1\u3092\u4e8b\u524d\u306b\u78ba\u8a8d\u3059\u308b<\/strong>\u5fc5\u8981\u304c\u3042\u308b<\/li>\n\n\n\n<li><code>WP_REDIS_IGNORED_GROUPS<\/code> \u5b9a\u6570\u3092\u4f7f\u3063\u3066\u6a29\u9650\u306b\u95a2\u308f\u308b\u30ad\u30e3\u30c3\u30b7\u30e5\u30b0\u30eb\u30fc\u30d7\u3092\u30ad\u30e3\u30c3\u30b7\u30e5\u5bfe\u8c61\u5916\u306b\u3059\u308b\u3053\u3068\u3067\u3001\u30c7\u30fc\u30bf\u6df7\u5728\u306e\u30ea\u30b9\u30af\u3092\u4f4e\u6e1b\u3067\u304d\u308b\uff08\u8a73\u7d30\u306f\u300c13. \u672c\u756a\u904b\u7528\u6642\u306e\u6ce8\u610f\u70b9\u300d\u3092\u53c2\u7167\uff09<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f1a\u54e1\u30b5\u30a4\u30c8\u3078\u306e\u5c0e\u5165\u306f\u3001\u30b9\u30c6\u30fc\u30b8\u30f3\u30b0\u74b0\u5883\u3067<strong>\u30ed\u30fc\u30eb\u5225\u30fb\u30ed\u30b0\u30a4\u30f3\u72b6\u614b\u5225\u306e\u8868\u793a\u5185\u5bb9\u3092\u5fc5\u305a\u691c\u8a3c<\/strong>\u3057\u305f\u3046\u3048\u3067\u672c\u756a\u9069\u7528\u3092\u5224\u65ad\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"4_%E5%B0%8E%E5%85%A5%E5%89%8D%E3%81%AE%E5%89%8D%E6%8F%90%E6%9D%A1%E4%BB%B6\"><\/span>4. \u5c0e\u5165\u524d\u306e\u524d\u63d0\u6761\u4ef6<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u672c\u8a18\u4e8b\u306e\u624b\u9806\u306f <strong>KUSANAGI 9\uff08AlmaLinux 9\uff09<\/strong> \u74b0\u5883\u3092\u524d\u63d0\u3068\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\u9805\u76ee<\/th><th>\u60f3\u5b9a\u3059\u308b\u74b0\u5883\u30fb\u6761\u4ef6<\/th><\/tr><\/thead><tbody><tr><td>OS<\/td><td>AlmaLinux 9\uff08KUSANAGI 9\uff09<\/td><\/tr><tr><td>Web \u30b5\u30fc\u30d0\u30fc<\/td><td>Nginx\uff08KUSANAGI \u30c7\u30d5\u30a9\u30eb\u30c8\uff09<\/td><\/tr><tr><td>PHP<\/td><td>KUSANAGI \u540c\u68b1\u306e PHP 8.x\uff08php-fpm \u3067\u52d5\u4f5c\uff09<\/td><\/tr><tr><td>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9<\/td><td>MariaDB\uff08KUSANAGI \u30c7\u30d5\u30a9\u30eb\u30c8\uff09<\/td><\/tr><tr><td>WordPress \u306e\u914d\u7f6e<\/td><td><code>\/home\/kusanagi\/&lt;\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u540d&gt;\/DocumentRoot\/<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"5_Redis_%E3%82%B5%E3%83%BC%E3%83%90%E3%83%BC%E3%81%AE%E7%A2%BA%E8%AA%8D\"><\/span>5. Redis \u30b5\u30fc\u30d0\u30fc\u306e\u78ba\u8a8d<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"KUSANAGI_9_%E3%81%A7%E3%81%AE_Redis_%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB%E7%A2%BA%E8%AA%8D\"><\/span>KUSANAGI 9 \u3067\u306e Redis \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u78ba\u8a8d<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">KUSANAGI 9\uff08AlmaLinux 9\uff09\u3067\u306f\u3001AlmaLinux \u6a19\u6e96\u30ea\u30dd\u30b8\u30c8\u30ea\u304b\u3089 Redis \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3059\u3002\u307e\u305a\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>rpm -q redis\n# \u4f8b: redis-7.2.x-x.el9.x86_64<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u306f\u4ee5\u4e0b\u306e\u624b\u9806\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>AlmaLinux 9 \u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u306f Redis 6 \u7cfb<\/strong> \u3067\u3059\u3002Redis 7 \u3092\u4f7f\u7528\u3059\u308b\u306b\u306f\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u524d\u306b dnf \u30e2\u30b8\u30e5\u30fc\u30eb\u30b9\u30c8\u30ea\u30fc\u30e0\u3067 Redis 7 \u3092\u660e\u793a\u7684\u306b\u6709\u52b9\u5316\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Redis 7 \u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u30b9\u30c8\u30ea\u30fc\u30e0\u3092\u6709\u52b9\u5316\nsudo dnf module -y enable redis:7\n\n# Redis \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\nsudo dnf install redis<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u88dc\u8db3\uff1a<\/strong> <code>dnf module enable<\/code> \u3092\u7701\u7565\u3059\u308b\u3068 Redis 6 \u7cfb\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u307e\u3059\u3002Redis 7 \u3067\u306f\u591a\u304f\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u6539\u5584\u3084\u65b0\u6a5f\u80fd\u304c\u542b\u307e\u308c\u308b\u305f\u3081\u3001\u7279\u5225\u306a\u7406\u7531\u304c\u306a\u3044\u9650\u308a Redis 7 \u306e\u4f7f\u7528\u3092\u63a8\u5968\u3057\u307e\u3059\u3002\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5f8c\u306b <code>redis-cli --version<\/code> \u3067\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br>\u306a\u304a\u3001<strong>Redis \u306e\u6700\u65b0\u7248\u306f 8 \u7cfb<\/strong>\u3067\u3059\u3002Redis 8 \u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u306f AlmaLinux \u6a19\u6e96\u30ea\u30dd\u30b8\u30c8\u30ea\u3067\u306f\u306a\u304f Redis \u516c\u5f0f\u306e RPM \u30ea\u30dd\u30b8\u30c8\u30ea\u304b\u3089\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5fc5\u8981\u3067\u3059\u3002\u624b\u9806\u306b\u3064\u3044\u3066\u306f\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\uff08<a href=\"https:\/\/redis.io\/docs\/latest\/operate\/oss_and_stack\/install\/install-stack\/rpm\/\">https:\/\/redis.io\/docs\/latest\/operate\/oss_and_stack\/install\/install-stack\/rpm\/<\/a>\uff09\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u672c\u8a18\u4e8b\u3067\u306f Redis 7 \u306e\u69cb\u6210\u3092\u524d\u63d0\u3068\u3057\u3066\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E8%B5%B7%E5%8B%95%E3%83%BB%E8%87%AA%E5%8B%95%E8%B5%B7%E5%8B%95%E3%81%AE%E8%A8%AD%E5%AE%9A\"><\/span>\u8d77\u52d5\u30fb\u81ea\u52d5\u8d77\u52d5\u306e\u8a2d\u5b9a<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code># Redis \u3092\u8d77\u52d5\u3057\u3001OS \u518d\u8d77\u52d5\u6642\u306b\u3082\u81ea\u52d5\u8d77\u52d5\u3059\u308b\u3088\u3046\u8a2d\u5b9a\nsudo systemctl enable --now redis\n\n# \u8d77\u52d5\u72b6\u614b\u3092\u78ba\u8a8d\nsudo systemctl status redis<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u6b63\u5e38\u306b\u8d77\u52d5\u3057\u3066\u3044\u308b\u3068 <code>Active: active (running)<\/code> \u3068\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E7%96%8E%E9%80%9A%E7%A2%BA%E8%AA%8D\"><\/span>\u758e\u901a\u78ba\u8a8d<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>redis-cli ping\n# PONG \u3068\u8fd4\u308c\u3070\u6b63\u5e38<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"KUSANAGI_%E7%92%B0%E5%A2%83%E3%81%A7%E3%81%AE_Redis_%E6%8E%A5%E7%B6%9A%E6%83%85%E5%A0%B1\"><\/span>KUSANAGI \u74b0\u5883\u3067\u306e Redis \u63a5\u7d9a\u60c5\u5831<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">KUSANAGI 9 \u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u8a2d\u5b9a\u3067\u306f Redis \u306f TCP \u63a5\u7d9a\u3067\u52d5\u4f5c\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\u9805\u76ee<\/th><th>\u30c7\u30d5\u30a9\u30eb\u30c8\u5024<\/th><\/tr><\/thead><tbody><tr><td>\u30db\u30b9\u30c8<\/td><td>127.0.0.1<\/td><\/tr><tr><td>\u30dd\u30fc\u30c8<\/td><td>6379<\/td><\/tr><tr><td>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9<\/td><td>0<\/td><\/tr><tr><td>\u8a8d\u8a3c\u30d1\u30b9\u30ef\u30fc\u30c9<\/td><td>\u306a\u3057<\/td><\/tr><tr><td>\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb<\/td><td><code>\/etc\/redis\/redis.conf<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"6_PHP_Redis_%E6%8B%A1%E5%BC%B5%E3%81%AE%E7%A2%BA%E8%AA%8D\"><\/span>6. PHP Redis \u62e1\u5f35\u306e\u78ba\u8a8d<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Redis Object Cache \u30d7\u30e9\u30b0\u30a4\u30f3\u306f\u3001Redis \u3068\u306e\u901a\u4fe1\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3068\u3057\u3066 <strong>phpredis<\/strong>\uff08PHP PECL \u62e1\u5f35\uff09\u3001Predis\uff08PHP \u30e9\u30a4\u30d6\u30e9\u30ea\uff09\u3001Relay \u306e\u3044\u305a\u308c\u304b\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002phpredis \u304c\u6700\u3082\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u304c\u9ad8\u304f\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f\u3067\u3042\u308c\u3070\u81ea\u52d5\u7684\u306b\u512a\u5148\u9078\u629e\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>KUSANAGI 9 \u6700\u65b0\u7248\u306b\u306f phpredis \u304c\u3042\u3089\u304b\u3058\u3081\u540c\u68b1\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/strong> \u8ffd\u52a0\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u4e0d\u8981\u3067\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u5c0e\u5165\u6e08\u307f\u3067\u3042\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php -m | grep redis\n# redis \u3068\u8868\u793a\u3055\u308c\u308c\u3070 OK<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"7_WordPress_%E3%81%AB_Redis_Object_Cache_%E3%83%97%E3%83%A9%E3%82%B0%E3%82%A4%E3%83%B3%E3%82%92%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB\"><\/span>7. WordPress \u306b Redis Object Cache \u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Redis Object Cache \u30d7\u30e9\u30b0\u30a4\u30f3\u306f <strong>Till Kr\u00fcss<\/strong> \u304c\u958b\u767a\u30fb\u516c\u958b\u3057\u3066\u3044\u308b\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3067\u3059\u3002\u7ba1\u7406\u753b\u9762\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u691c\u7d22\u307e\u305f\u306f\u516c\u5f0f\u30da\u30fc\u30b8\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u6709\u52b9\u5316\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>WordPress \u30d7\u30e9\u30b0\u30a4\u30f3\u516c\u5f0f\u30da\u30fc\u30b8\uff1a<\/strong> <a href=\"https:\/\/ja.wordpress.org\/plugins\/redis-cache\/\">https:\/\/ja.wordpress.org\/plugins\/redis-cache\/<\/a><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u6709\u52b9\u5316\u5f8c\u3001\u7ba1\u7406\u753b\u9762\u306e\u5de6\u30e1\u30cb\u30e5\u30fc\u300c\u8a2d\u5b9a\u300d\u2192\u300cRedis\u300d\u306b\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u8a2d\u5b9a\u30da\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u3053\u306e\u6642\u70b9\u3067\u306f Object Cache \u306f\u307e\u3060\u6709\u52b9\u3067\u306f\u306a\u304f\u3001\u300cStatus: Not enabled\u300d\u3068\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u6b21\u306e\u624b\u9806\u3067\u63a5\u7d9a\u8a2d\u5b9a\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"8_wp-configphp_%E3%81%AB_Redis_%E6%8E%A5%E7%B6%9A%E8%A8%AD%E5%AE%9A%E3%82%92%E8%BF%BD%E5%8A%A0\"><\/span>8. wp-config.php \u306b Redis \u63a5\u7d9a\u8a2d\u5b9a\u3092\u8ffd\u52a0<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Redis \u3078\u306e\u63a5\u7d9a\u60c5\u5831\u3092 <code>wp-config.php<\/code> \u306b\u5b9a\u7fa9\u3057\u307e\u3059\u3002KUSANAGI \u74b0\u5883\u3067\u306e <code>wp-config.php<\/code> \u306e\u5834\u6240\u306f\u4ee5\u4e0b\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/home\/kusanagi\/&lt;\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u540d&gt;\/DocumentRoot\/wp-config.php\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">wp-config.php\u306b\u4e0b\u8a18\u306e\u5b9a\u7fa9\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ Redis \u63a5\u7d9a\u5148\u30db\u30b9\u30c8\ndefine( 'WP_REDIS_HOST', '127.0.0.1' );\n\n\/\/ Redis \u30dd\u30fc\u30c8\u756a\u53f7\ndefine( 'WP_REDIS_PORT', 6379 );\n\n\/\/ \u4f7f\u7528\u3059\u308b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u756a\u53f7\uff080\u301c15\uff09\ndefine( 'WP_REDIS_DATABASE', 0 );\n\n\/\/ \u30ad\u30e3\u30c3\u30b7\u30e5\u30ad\u30fc\u306e\u30d7\u30ec\u30d5\u30a3\u30c3\u30af\u30b9\uff08\u540c\u4e00 Redis \u3092\u8907\u6570\u30b5\u30a4\u30c8\u3067\u5171\u6709\u3059\u308b\u5834\u5408\u306f\u5fc5\u305a\u8a2d\u5b9a\uff09\ndefine( 'WP_REDIS_PREFIX', 'mysite:' );\n\n\/\/ \u4f7f\u7528\u3059\u308b\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3092\u660e\u793a\u7684\u306b\u6307\u5b9a\uff08phpredis \u63a8\u5968\uff09\ndefine( 'WP_REDIS_CLIENT', 'phpredis' );\n\n\/\/ \u63a5\u7d9a\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\uff08\u79d2\uff09\ndefine( 'WP_REDIS_TIMEOUT', 1 );\n\/\/ \u8aad\u307f\u53d6\u308a\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\uff08\u79d2\uff09\ndefine( 'WP_REDIS_READ_TIMEOUT', 1 );\n<\/code><\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><strong>KUSANAGI \u30de\u30eb\u30c1\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u69cb\u6210\u306e\u5834\u5408\uff1a<\/strong><br>\u540c\u4e00\u30b5\u30fc\u30d0\u30fc\u4e0a\u306b\u8907\u6570\u306e KUSANAGI \u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3001\u540c\u3058 Redis \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u5171\u6709\u3059\u308b\u5834\u5408\u306f\u3001\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u3054\u3068\u306b <code>WP_REDIS_PREFIX<\/code> \u307e\u305f\u306f <code>WP_REDIS_DATABASE<\/code> \u3092\u5fc5\u305a\u5225\u306e\u5024\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u8a2d\u5b9a\u304c\u91cd\u8907\u3059\u308b\u3068\u30ad\u30e3\u30c3\u30b7\u30e5\u304c\u6df7\u5728\u3057\u307e\u3059\u3002<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"9_Object_Cache_%E3%82%92%E6%9C%89%E5%8A%B9%E5%8C%96%E3%81%99%E3%82%8B\"><\/span>9. Object Cache \u3092\u6709\u52b9\u5316\u3059\u308b<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E7%AE%A1%E7%90%86%E7%94%BB%E9%9D%A2%E3%81%8B%E3%82%89%E6%9C%89%E5%8A%B9%E5%8C%96\"><\/span>\u7ba1\u7406\u753b\u9762\u304b\u3089\u6709\u52b9\u5316<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u300c\u8a2d\u5b9a\u300d\u2192\u300cRedis\u300d\u3092\u958b\u304f<\/li>\n\n\n\n<li>\u63a5\u7d9a\u30b9\u30c6\u30fc\u30bf\u30b9\u304c\u300cConnected\u300d\u306b\u306a\u3063\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d<\/li>\n\n\n\n<li>\u300cEnable Object Cache\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">\u6709\u52b9\u5316\u3059\u308b\u3068 <code>wp-content\/object-cache.php<\/code>\uff08Drop-in \u30d5\u30a1\u30a4\u30eb\uff09\u304c\u8a2d\u7f6e\u3055\u308c\u3001WordPress \u306e Object Cache \u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u304c Redis \u306b\u5207\u308a\u66ff\u308f\u308a\u307e\u3059\u3002<br><\/p>\n\n\n\n<p class=\"is-style-plain wp-block-paragraph\"><strong>\u6ce8\u610f\uff1a<\/strong> \u300cEnable Object Cache\u300d\u30dc\u30bf\u30f3\u304c\u6709\u52b9\u3055\u308c\u306a\u3044\u5834\u5408\u3001\u300c12. \u3088\u304f\u3042\u308b\u30c8\u30e9\u30d6\u30eb\u3068\u5bfe\u51e6\u65b9\u6cd5\u300d\u3092\u53c2\u7167<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"10_Redis%E3%83%92%E3%83%83%E3%83%88%E7%8E%87%E3%81%AA%E3%81%A9%E7%A2%BA%E8%AA%8D\"><\/span>10. Redis\u30d2\u30c3\u30c8\u7387\u306a\u3069\u78ba\u8a8d<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E7%AE%A1%E7%90%86%E7%94%BB%E9%9D%A2%E3%81%A7%E3%81%AE%E7%A2%BA%E8%AA%8D\"><\/span>\u7ba1\u7406\u753b\u9762\u3067\u306e\u78ba\u8a8d<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u300c\u8a2d\u5b9a\u300d\u2192\u300cRedis\u300d\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u8a2d\u5b9a\u30da\u30fc\u30b8\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u3001\u300cmetrics\u300d\u30bf\u30d6\u3067\u300cTime\u3001Bytes\u3001Ratio\u3001Calls\u300d\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"CLI_%E3%81%A7%E3%81%AE%E7%A2%BA%E8%AA%8D\"><\/span>CLI \u3067\u306e\u78ba\u8a8d<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code># Redis \u306b\u4fdd\u5b58\u3055\u308c\u3066\u3044\u308b\u30ad\u30fc\u6570\u3092\u78ba\u8a8d\nredis-cli dbsize\n\n# \u30b5\u30fc\u30d0\u30fc\u5168\u4f53\u306e\u30d2\u30c3\u30c8\u7387\u3092\u78ba\u8a8d\nredis-cli info stats | grep -E \"keyspace_hits|keyspace_misses\"<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><code>keyspace_hits<\/code> \u3068 <code>keyspace_misses<\/code> \u306e\u6bd4\u7387\u3067\u30b5\u30fc\u30d0\u30fc\u5168\u4f53\u306e\u30ad\u30e3\u30c3\u30b7\u30e5\u30d2\u30c3\u30c8\u7387\u3092\u628a\u63e1\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Query_Monitor_%E3%83%97%E3%83%A9%E3%82%B0%E3%82%A4%E3%83%B3%E3%81%A8%E3%81%AE%E9%80%A3%E6%90%BA\"><\/span>Query Monitor \u30d7\u30e9\u30b0\u30a4\u30f3\u3068\u306e\u9023\u643a<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u300cQuery Monitor\u300d\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u5c0e\u5165\u3059\u308b\u3068\u3001\u30da\u30fc\u30b8\u3054\u3068\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30af\u30a8\u30ea\u6570\u3068 Object Cache \u306e\u30d2\u30c3\u30c8\u6570\u3092\u7ba1\u7406\u30d0\u30fc\u304b\u3089\u76f4\u63a5\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002Redis Object Cache \u6709\u52b9\u5316\u306e\u524d\u5f8c\u3067\u30af\u30a8\u30ea\u6570\u3092\u6bd4\u8f03\u3059\u308b\u3068\u52b9\u679c\u304c\u4e00\u76ee\u77ad\u7136\u3067\u3059\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"11_%E3%82%AD%E3%83%A3%E3%83%83%E3%82%B7%E3%83%A5%E5%89%8A%E9%99%A4%E6%96%B9%E6%B3%95\"><\/span>11. \u30ad\u30e3\u30c3\u30b7\u30e5\u524a\u9664\u65b9\u6cd5<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E7%AE%A1%E7%90%86%E7%94%BB%E9%9D%A2%E3%81%8B%E3%82%89%E5%89%8A%E9%99%A4\"><\/span>\u7ba1\u7406\u753b\u9762\u304b\u3089\u524a\u9664<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u300c\u8a2d\u5b9a\u300d\u2192\u300cRedis\u300d\u2192\u300cFlush Cache\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Redis CLI \u3067\u76f4\u63a5\u30d5\u30e9\u30c3\u30b7\u30e5\u3059\u308b\u5834\u5408\u306f\u5bfe\u8c61\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u756a\u53f7\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9 0 \u306e\u307f\u3092\u30d5\u30e9\u30c3\u30b7\u30e5\uff08\u4ed6\u30b5\u30a4\u30c8\u306e\u30c7\u30fc\u30bf\u306b\u5f71\u97ff\u3057\u306a\u3044\uff09\nredis-cli -n 0 FLUSHDB<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u6ce8\u610f\uff1a<\/strong> <code>FLUSHALL<\/code> \u306f Redis \u4e0a\u306e\u5168\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u524a\u9664\u3057\u307e\u3059\u3002\u8907\u6570\u30b5\u30a4\u30c8\u3067 Redis \u3092\u5171\u6709\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u4f7f\u7528\u3057\u306a\u3044\u3067\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E8%87%AA%E5%8B%95%E3%83%95%E3%83%A9%E3%83%83%E3%82%B7%E3%83%A5%E3%81%AE%E3%82%BF%E3%82%A4%E3%83%9F%E3%83%B3%E3%82%B0\"><\/span>\u81ea\u52d5\u30d5\u30e9\u30c3\u30b7\u30e5\u306e\u30bf\u30a4\u30df\u30f3\u30b0<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Redis Object Cache \u30d7\u30e9\u30b0\u30a4\u30f3\u306f\u4ee5\u4e0b\u306e\u30bf\u30a4\u30df\u30f3\u30b0\u3067\u95a2\u9023\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u81ea\u52d5\u7684\u306b\u524a\u9664\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u6295\u7a3f\u30fb\u56fa\u5b9a\u30da\u30fc\u30b8\u3092\u516c\u958b\u30fb\u66f4\u65b0\u3057\u305f\u3068\u304d<\/li>\n\n\n\n<li>\u30c6\u30fc\u30de\u30fb\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u5909\u66f4\u3057\u305f\u3068\u304d<\/li>\n\n\n\n<li>WordPress \u306e\u30b3\u30a2\u3084\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3057\u305f\u3068\u304d<\/li>\n\n\n\n<li>WordPress \u306e\u8a2d\u5b9a\u3092\u5909\u66f4\u3057\u305f\u3068\u304d<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"12_%E3%82%88%E3%81%8F%E3%81%82%E3%82%8B%E3%83%88%E3%83%A9%E3%83%96%E3%83%AB%E3%81%A8%E5%AF%BE%E5%87%A6%E6%96%B9%E6%B3%95\"><\/span>12. \u3088\u304f\u3042\u308b\u30c8\u30e9\u30d6\u30eb\u3068\u5bfe\u51e6\u65b9\u6cd5<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E3%82%B9%E3%83%86%E3%83%BC%E3%82%BF%E3%82%B9%E3%81%8C%E3%80%8CNot_connected%E3%80%8D%E3%81%AE%E3%81%BE%E3%81%BE\"><\/span>\u30b9\u30c6\u30fc\u30bf\u30b9\u304c\u300cNot connected\u300d\u306e\u307e\u307e<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u307e\u305a Redis \u304c\u8d77\u52d5\u3057\u3066\u3044\u308b\u304b\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl status redis<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u6b21\u306b PHP \u304b\u3089 Redis \u3078\u306e\u758e\u901a\u3092\u76f4\u63a5\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php -r \"\n\\$r = new Redis();\nvar_dump(\\$r-&gt;connect('127.0.0.1', 6379));\necho \\$r-&gt;ping();\n\"\n# bool(true)\n1<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><code>wp-config.php<\/code> \u306e\u30db\u30b9\u30c8\u30fb\u30dd\u30fc\u30c8\u30fb\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u756a\u53f7\u304c\u5b9f\u969b\u306e Redis \u8a2d\u5b9a\u3068\u4e00\u81f4\u3057\u3066\u3044\u308b\u304b\u3082\u5408\u308f\u305b\u3066\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"object-cachephp_%E3%81%AE%E6%9B%B8%E3%81%8D%E8%BE%BC%E3%81%BF%E6%A8%A9%E9%99%90%E3%82%A8%E3%83%A9%E3%83%BC\"><\/span><code>object-cache.php<\/code> \u306e\u66f8\u304d\u8fbc\u307f\u6a29\u9650\u30a8\u30e9\u30fc<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"> <code>wp-content\/<\/code> \u306e\u6240\u6709\u8005\u3068\u6a29\u9650\u3092\u78ba\u8a8d<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># wp-content\/ \u306e\u6a29\u9650\u30fb\u6240\u6709\u8005\u3092\u78ba\u8a8d\nls -la \/home\/kusanagi\/&lt;\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u540d&gt;\/DocumentRoot\/wp-content\/\n\n# \u8aa4\u3063\u3066\u64cd\u4f5c\u3057\u305f\u5834\u5408\u306f\u6240\u6709\u8005\u3092\u4fee\u6b63\u3059\u308b\nsudo chown kusanagi:www \/home\/kusanagi\/&lt;\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u540d&gt;\/DocumentRoot\/wp-content\/\nsudo chmod 775 \/home\/kusanagi\/&lt;\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u540d&gt;\/DocumentRoot\/wp-content\/<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u307e\u305f\u3001KUSANAGI \u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u8a2d\u5b9a\u3067\u306f <code>wp-config.php<\/code> \u306b\u4ee5\u4e0b\u306e\u5b9a\u6570\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u304a\u308a\u3001WordPress \u304c\u30d5\u30a1\u30a4\u30eb\u306e\u66f8\u304d\u8fbc\u307f\u306b FTP \u7d4c\u7531\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>define('FS_METHOD', 'ftpext');<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u72b6\u614b\u3067 <code>FTP_PASS<\/code> \u304c\u672a\u8a2d\u5b9a\u306e\u5834\u5408\u3001\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u300cEnable Object Cache\u300d\u5b9f\u884c\u6642\u306b <code>object-cache.php<\/code> \u3092 <code>wp-content\/<\/code> \u3078\u66f8\u304d\u8fbc\u3081\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># FTP\u30d1\u30b9\u30ef\u30fc\u30c9\u306b\u6b63\u3057\u304f\u30d1\u30b9\u30ef\u30fc\u30c9\u306b\u4fee\u6b63\n# \u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3055\u308c\u305f\u5834\u5408\u3082\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3092\u5916\u3059\ndefine('FTP_PASS', 'FTP\u30d1\u30b9\u30ef\u30fc\u30c9');<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"phpredis_%E3%81%8C%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB%E6%B8%88%E3%81%BF%E3%81%AA%E3%81%AE%E3%81%AB_Predis_%E3%81%8C%E4%BD%BF%E3%82%8F%E3%82%8C%E3%82%8B\"><\/span>phpredis \u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f\u306a\u306e\u306b Predis \u304c\u4f7f\u308f\u308c\u308b<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><code>wp-config.php<\/code> \u3067\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3092\u660e\u793a\u7684\u306b\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>define( 'WP_REDIS_CLIENT', 'phpredis' );<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u6307\u5b9a\u5f8c\u3001\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u8a2d\u5b9a\u30da\u30fc\u30b8\u3067\u300cClient: PhpRedis\u300d\u3068\u8868\u793a\u3055\u308c\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Redis_%E3%81%AE%E3%83%A1%E3%83%A2%E3%83%AA%E4%BD%BF%E7%94%A8%E9%87%8F%E3%81%8C%E5%A2%97%E5%A4%A7%E3%81%99%E3%82%8B\"><\/span>Redis \u306e\u30e1\u30e2\u30ea\u4f7f\u7528\u91cf\u304c\u5897\u5927\u3059\u308b<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Object Cache \u7528\u9014\u3067\u306f Redis \u306b\u30e1\u30e2\u30ea\u4e0a\u9650\u3068\u30a8\u30d3\u30af\u30b7\u30e7\u30f3\u30dd\u30ea\u30b7\u30fc\u3092\u8a2d\u5b9a\u3057\u3066\u304a\u304f\u3053\u3068\u3092\u63a8\u5968\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># \u73fe\u5728\u306e\u30e1\u30e2\u30ea\u4f7f\u7528\u91cf\u3092\u78ba\u8a8d\nredis-cli info memory | grep used_memory_human<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><code>\/etc\/redis\/redis.conf<\/code> \u306b\u4ee5\u4e0b\u3092\u8ffd\u8a18\u3057\u3066 Redis \u3092\u518d\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>maxmemory 256mb\nmaxmemory-policy allkeys-lru<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl restart redis<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><code>allkeys-lru<\/code> \u3092\u6307\u5b9a\u3059\u308b\u3068\u3001\u30e1\u30e2\u30ea\u304c\u4e0a\u9650\u306b\u9054\u3057\u305f\u969b\u306b\u6700\u3082\u53c2\u7167\u304c\u53e4\u3044\u30ad\u30e3\u30c3\u30b7\u30e5\u30a8\u30f3\u30c8\u30ea\u304b\u3089\u81ea\u52d5\u524a\u9664\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"13_%E6%9C%AC%E7%95%AA%E9%81%8B%E7%94%A8%E6%99%82%E3%81%AE%E6%B3%A8%E6%84%8F%E7%82%B9\"><\/span>13. \u672c\u756a\u904b\u7528\u6642\u306e\u6ce8\u610f\u70b9<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Redis_%E3%81%AE%E5%86%8D%E8%B5%B7%E5%8B%95%E3%81%A8%E3%82%AD%E3%83%A3%E3%83%83%E3%82%B7%E3%83%A5%E3%81%AE%E3%82%B3%E3%83%BC%E3%83%AB%E3%83%89%E3%82%B9%E3%82%BF%E3%83%BC%E3%83%88\"><\/span>Redis \u306e\u518d\u8d77\u52d5\u3068\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u30b3\u30fc\u30eb\u30c9\u30b9\u30bf\u30fc\u30c8<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Redis \u3092\u518d\u8d77\u52d5\u3059\u308b\u3068\u30ad\u30e3\u30c3\u30b7\u30e5\u30c7\u30fc\u30bf\u306f\u6d88\u5931\u3057\u307e\u3059\u3002Object Cache \u3068\u3057\u3066\u4f7f\u7528\u3059\u308b\u5834\u5408\u3001\u30ad\u30e3\u30c3\u30b7\u30e5\u304c\u6d88\u3048\u3066\u3082 WordPress \u304c MariaDB \u304b\u3089\u518d\u53d6\u5f97\u3059\u308b\u305f\u3081 <strong>\u52d5\u4f5c\u4e0a\u306e\u554f\u984c\u306f\u3042\u308a\u307e\u305b\u3093<\/strong>\u3002\u305f\u3060\u3057\u518d\u8d77\u52d5\u76f4\u5f8c\u306f DB \u8ca0\u8377\u304c\u4e00\u6642\u7684\u306b\u4e0a\u6607\u3057\u307e\u3059\u3002\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u6642\u9593\u5e2f\u3067\u306e\u4f5c\u696d\u3084\u3001\u518d\u8d77\u52d5\u5f8c\u306e\u30a2\u30af\u30bb\u30b9\u72b6\u6cc1\u306e\u76e3\u8996\u3092\u63a8\u5968\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E3%82%BB%E3%82%AD%E3%83%A5%E3%83%AA%E3%83%86%E3%82%A3%E8%A8%AD%E5%AE%9A\"><\/span>\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u8a2d\u5b9a<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">KUSANAGI 9 \u306e Redis \u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u30ed\u30fc\u30ab\u30eb\u30db\u30b9\u30c8\uff08127.0.0.1\uff09\u306e\u307f\u306b\u30d0\u30a4\u30f3\u30c9\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u8a2d\u5b9a\u3092\u78ba\u8a8d\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo grep \"^bind\" \/etc\/redis\/redis.conf\n# \u51fa\u529b\nbind 127.0.0.1 -::1<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"KUSANAGI_%E3%83%97%E3%83%AD%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%82%92%E8%A4%87%E6%95%B0%E9%81%8B%E7%94%A8%E3%81%97%E3%81%A6%E3%81%84%E3%82%8B%E5%A0%B4%E5%90%88\"><\/span>KUSANAGI \u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u3092\u8907\u6570\u904b\u7528\u3057\u3066\u3044\u308b\u5834\u5408<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u540c\u4e00\u306e Redis \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u8907\u6570\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u3067\u5171\u6709\u3059\u308b\u5834\u5408\u306f\u3001\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u3054\u3068\u306b <code>WP_REDIS_PREFIX<\/code> \u3092\u4e00\u610f\u306b\u8a2d\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ \u30d7\u30ed\u30d5\u30a1\u30a4\u30eb A \u306e wp-config.php\ndefine( 'WP_REDIS_PREFIX', 'site-a:' );\n\n\/\/ \u30d7\u30ed\u30d5\u30a1\u30a4\u30eb B \u306e wp-config.php\ndefine( 'WP_REDIS_PREFIX', 'site-b:' );<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E4%BC%9A%E5%93%A1%E3%82%B5%E3%82%A4%E3%83%88%E3%83%BB%E3%83%AD%E3%83%BC%E3%83%AB%E3%83%99%E3%83%BC%E3%82%B9%E8%A1%A8%E7%A4%BA%E3%82%B5%E3%82%A4%E3%83%88%E3%81%A7%E3%81%AE%E3%82%AD%E3%83%A3%E3%83%83%E3%82%B7%E3%83%A5%E3%82%B0%E3%83%AB%E3%83%BC%E3%83%97%E5%88%B6%E5%BE%A1\"><\/span>\u4f1a\u54e1\u30b5\u30a4\u30c8\u30fb\u30ed\u30fc\u30eb\u30d9\u30fc\u30b9\u8868\u793a\u30b5\u30a4\u30c8\u3067\u306e\u30ad\u30e3\u30c3\u30b7\u30e5\u30b0\u30eb\u30fc\u30d7\u5236\u5fa1<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f1a\u54e1\u30e9\u30f3\u30af\u3084\u6a29\u9650\uff08\u30ed\u30fc\u30eb\uff09\u306b\u3088\u3063\u3066\u8868\u793a\u5185\u5bb9\u304c\u5909\u308f\u308b\u30b5\u30a4\u30c8\u3067\u306f\u3001<strong>\u6a29\u9650\u306b\u95a2\u308f\u308b\u30c7\u30fc\u30bf\u3092\u30ad\u30e3\u30c3\u30b7\u30e5\u304b\u3089\u9664\u5916\u3059\u308b<\/strong>\u8a2d\u5b9a\u304c\u5fc5\u8981\u306b\u306a\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002Redis Object Cache \u306f\u30e6\u30fc\u30b6\u30fc\u306e\u30ed\u30fc\u30eb\u3084\u6a29\u9650\u3092\u533a\u5225\u305b\u305a\u306b\u30ad\u30e3\u30c3\u30b7\u30e5\u3059\u308b\u305f\u3081\u3001\u9069\u5207\u306a\u5236\u5fa1\u3092\u884c\u308f\u306a\u3044\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u554f\u984c\u304c\u767a\u751f\u3059\u308b\u30ea\u30b9\u30af\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u6709\u6599\u4f1a\u54e1\u5411\u3051\u30b3\u30f3\u30c6\u30f3\u30c4\u306e\u60c5\u5831\u304c\u7121\u6599\u4f1a\u54e1\u306e\u30ad\u30e3\u30c3\u30b7\u30e5\u306b\u6df7\u5165\u3059\u308b<\/li>\n\n\n\n<li>\u30e6\u30fc\u30b6\u30fc\u3054\u3068\u306b\u7570\u306a\u308b\u30ab\u30fc\u30c8\u60c5\u5831\u30fb\u8cfc\u5165\u5c65\u6b74\u306a\u3069\u304c\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u901a\u3058\u3066\u5225\u30e6\u30fc\u30b6\u30fc\u306b\u898b\u3048\u3066\u3057\u307e\u3046<\/li>\n\n\n\n<li>\u30ed\u30fc\u30eb\u5225\u306e\u30e1\u30cb\u30e5\u30fc\u3084 restricted \u30b3\u30f3\u30c6\u30f3\u30c4\u304c\u610f\u56f3\u3057\u306a\u3044\u30e6\u30fc\u30b6\u30fc\u306b\u8868\u793a\u3055\u308c\u308b<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u30ad\u30e3\u30c3\u30b7\u30e5\u304b\u3089\u9664\u5916\u3059\u308b\u30b0\u30eb\u30fc\u30d7\u3092\u6307\u5b9a\u3059\u308b\u65b9\u6cd5<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>wp-config.php<\/code> \u306b <code>WP_REDIS_IGNORED_GROUPS<\/code> \u3092\u5b9a\u7fa9\u3059\u308b\u3053\u3068\u3067\u3001\u7279\u5b9a\u306e\u30ad\u30e3\u30c3\u30b7\u30e5\u30b0\u30eb\u30fc\u30d7\u3092 Redis \u306e\u4fdd\u5b58\u5bfe\u8c61\u304b\u3089\u9664\u5916\u3057\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u3054\u3068\u306b DB \u304b\u3089\u518d\u53d6\u5f97\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ \u4f1a\u54e1\u60c5\u5831\u30fb\u30bb\u30c3\u30b7\u30e7\u30f3\u30fb\u30ab\u30fc\u30c8\u306a\u3069\u6a29\u9650\u306b\u95a2\u308f\u308b\u30b0\u30eb\u30fc\u30d7\u3092\u9664\u5916\u3059\u308b\u4f8b\ndefine( 'WP_REDIS_IGNORED_GROUPS', &#91;\n    'users',          \/\/ \u30e6\u30fc\u30b6\u30fc\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\n    'user_meta',      \/\/ \u30e6\u30fc\u30b6\u30fc\u30e1\u30bf\u30c7\u30fc\u30bf\n    'user-queries',   \/\/ \u30e6\u30fc\u30b6\u30fc\u691c\u7d22\u30af\u30a8\u30ea\n    'session',        \/\/ \u30bb\u30c3\u30b7\u30e7\u30f3\u60c5\u5831\n    'wc_session_id',  \/\/ WooCommerce \u30bb\u30c3\u30b7\u30e7\u30f3\n    'cart',           \/\/ \u30ab\u30fc\u30c8\u60c5\u5831\n] );\n<\/code><\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><strong>\u88dc\u8db3\uff1a<\/strong> \u9664\u5916\u3059\u308b\u30b0\u30eb\u30fc\u30d7\u306f\u30b5\u30a4\u30c8\u3067\u4f7f\u7528\u3057\u3066\u3044\u308b\u4f1a\u54e1\u7ba1\u7406\u30d7\u30e9\u30b0\u30a4\u30f3\u3084 WooCommerce \u306a\u3069\u306b\u3088\u3063\u3066\u7570\u306a\u308a\u307e\u3059\u3002Query Monitor \u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u300cObject Cache\u300d\u30d1\u30cd\u30eb\u3067\u5b9f\u969b\u306b\u4f7f\u308f\u308c\u3066\u3044\u308b\u30ad\u30e3\u30c3\u30b7\u30e5\u30b0\u30eb\u30fc\u30d7\u3092\u78ba\u8a8d\u3057\u3001\u6a29\u9650\u306b\u95a2\u308f\u308b\u3082\u306e\u3092\u7279\u5b9a\u3057\u3066\u9664\u5916\u30b0\u30eb\u30fc\u30d7\u306b\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">\u9664\u5916\u30b0\u30eb\u30fc\u30d7\u3092\u5897\u3084\u3059\u307b\u3069\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u6069\u6075\u306f\u6e1b\u308a\u307e\u3059\u304c\u3001\u4f1a\u54e1\u30b5\u30a4\u30c8\u306e\u4fe1\u983c\u6027\u30fb\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u512a\u5148\u3057\u305f\u8a2d\u5b9a\u304c\u91cd\u8981\u3067\u3059\u3002\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3068\u5b89\u5168\u6027\u306e\u30d0\u30e9\u30f3\u30b9\u3092\u53d6\u308a\u306a\u304c\u3089\u3001\u5fc5\u8981\u6700\u5c0f\u9650\u306e\u30b0\u30eb\u30fc\u30d7\u306e\u307f\u9664\u5916\u3059\u308b\u3088\u3046\u8abf\u6574\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"14_%E3%83%91%E3%83%95%E3%82%A9%E3%83%BC%E3%83%9E%E3%83%B3%E3%82%B9%E7%A2%BA%E8%AA%8D%E3%81%AE%E8%A6%B3%E7%82%B9\"><\/span>14. \u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u78ba\u8a8d\u306e\u89b3\u70b9<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Redis Object Cache \u5c0e\u5165\u306e\u52b9\u679c\u3092\u5b9a\u91cf\u7684\u306b\u628a\u63e1\u3059\u308b\u305f\u3081\u3001\u4ee5\u4e0b\u306e\u6307\u6a19\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E3%82%AD%E3%83%A3%E3%83%83%E3%82%B7%E3%83%A5%E3%83%92%E3%83%83%E3%83%88%E7%8E%87%EF%BC%88Hit_Ratio%EF%BC%89\"><\/span>\u30ad\u30e3\u30c3\u30b7\u30e5\u30d2\u30c3\u30c8\u7387\uff08Hit Ratio\uff09<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u8a2d\u5b9a\u30da\u30fc\u30b8\u3067\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002\u30b5\u30a4\u30c8\u304c\u5b89\u5b9a\u7a3c\u50cd\u3057\u3066\u3044\u308b\u72b6\u614b\u3067 <strong>80\u301c90% \u4ee5\u4e0a<\/strong> \u3092\u76ee\u6a19\u306b\u3057\u307e\u3059\u3002\u30d2\u30c3\u30c8\u7387\u304c\u8457\u3057\u304f\u4f4e\u3044\u5834\u5408\u306f\u3001\u9664\u5916\u30b0\u30eb\u30fc\u30d7\u306e\u8a2d\u5b9a\u3084\u30ad\u30e3\u30c3\u30b7\u30e5 TTL \u306e\u898b\u76f4\u3057\u3092\u691c\u8a0e\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E3%83%87%E3%83%BC%E3%82%BF%E3%83%99%E3%83%BC%E3%82%B9%E3%82%AF%E3%82%A8%E3%83%AA%E6%95%B0%E3%81%AE%E5%A4%89%E5%8C%96\"><\/span>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30af\u30a8\u30ea\u6570\u306e\u5909\u5316<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Query Monitor \u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u4f7f\u3063\u3066\u3001\u7ba1\u7406\u753b\u9762\u3084\u30d5\u30ed\u30f3\u30c8\u30da\u30fc\u30b8\u306e\u30af\u30a8\u30ea\u6570\u3092\u5c0e\u5165\u524d\u5f8c\u3067\u6bd4\u8f03\u3057\u307e\u3059\u3002\u30d2\u30c3\u30c8\u7387\u304c\u9ad8\u3044\u74b0\u5883\u3067\u306f DB \u30af\u30a8\u30ea\u304c\u534a\u6e1b\u4ee5\u4e0a\u3059\u308b\u30b1\u30fc\u30b9\u3082\u73cd\u3057\u304f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Redis_%E5%BF%9C%E7%AD%94%E6%99%82%E9%96%93\"><\/span>Redis \u5fdc\u7b54\u6642\u9593<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code># \u30ec\u30a4\u30c6\u30f3\u30b7\u30fc\u306e\u7d99\u7d9a\u6e2c\u5b9a\nredis-cli --latency -h 127.0.0.1 -p 6379<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">TCP \u63a5\u7d9a\u3067\u306f 2ms\u4ee5\u4e0b\u3053\u3068\u304c\u671b\u307e\u3057\u3044<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"MariaDB_%E3%81%B8%E3%81%AE%E8%B2%A0%E8%8D%B7%E5%A4%89%E5%8C%96\"><\/span>MariaDB \u3078\u306e\u8ca0\u8377\u5909\u5316<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Redis \u5c0e\u5165\u5f8c\u306e MariaDB \u306e\u72b6\u614b\u3092\u78ba\u8a8d\u3088\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\u78ba\u8a8d\u30b3\u30de\u30f3\u30c9\u4f8b\n\n-- \u30af\u30a8\u30ea\u5b9f\u884c\u6570\u306e\u78ba\u8a8d\nSHOW STATUS LIKE 'Questions';\n\n-- \u30b9\u30ed\u30fc\u30af\u30a8\u30ea\u4ef6\u6570\u306e\u78ba\u8a8d\nSHOW STATUS LIKE 'Slow_queries';\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u5c0e\u5165\u524d\u5f8c\u3067\u30af\u30a8\u30ea\u5b9f\u884c\u6570\u306e\u5897\u52a0\u30da\u30fc\u30b9\u304c\u920d\u5316\u3057\u3066\u3044\u308c\u3070\u3001Redis Object Cache \u304c\u6709\u52b9\u306b\u6a5f\u80fd\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"15_%E7%84%A1%E5%8A%B9%E5%8C%96%E3%83%BB%E5%88%87%E3%82%8A%E6%88%BB%E3%81%97%E6%96%B9%E6%B3%95\"><\/span>15. \u7121\u52b9\u5316\u30fb\u5207\u308a\u623b\u3057\u65b9\u6cd5<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u554f\u984c\u767a\u751f\u6642\u306b\u7d20\u65e9\u304f\u5143\u306e\u72b6\u614b\u306b\u623b\u305b\u308b\u3088\u3046\u3001\u4e8b\u524d\u306b\u624b\u9806\u3092\u628a\u63e1\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E7%AE%A1%E7%90%86%E7%94%BB%E9%9D%A2%E3%81%8B%E3%82%89%E7%84%A1%E5%8A%B9%E5%8C%96\"><\/span>\u7ba1\u7406\u753b\u9762\u304b\u3089\u7121\u52b9\u5316<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u300c\u8a2d\u5b9a\u300d\u2192\u300cRedis\u300d\u2192\u300cDisable Object Cache\u300d\u3092\u30af\u30ea\u30c3\u30af<\/li>\n\n\n\n<li>\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u7121\u52b9\u5316<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E6%89%8B%E5%8B%95%E3%81%A7%E5%8D%B3%E6%99%82%E5%88%87%E3%82%8A%E6%88%BB%E3%81%99%E5%A0%B4%E5%90%88\"><\/span>\u624b\u52d5\u3067\u5373\u6642\u5207\u308a\u623b\u3059\u5834\u5408<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><code>wp-content\/object-cache.php<\/code> \u3092\u524a\u9664\u3059\u308b\u3060\u3051\u3067\u3001WordPress \u306f\u5373\u5ea7\u306b\u30c7\u30d5\u30a9\u30eb\u30c8\u306e Non-Persistent Object Cache \u306b\u5207\u308a\u66ff\u308f\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>rm \/home\/kusanagi\/&lt;\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u540d&gt;\/DocumentRoot\/wp-content\/object-cache.php<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><code>wp-config.php<\/code> \u306b\u8ffd\u8a18\u3057\u305f Redis \u95a2\u9023\u306e\u5b9a\u6570\u3082\u5408\u308f\u305b\u3066\u524a\u9664\u307e\u305f\u306f\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><strong>\u30dd\u30a4\u30f3\u30c8\uff1a<\/strong> <code>object-cache.php<\/code> \u306e\u524a\u9664\u306f WordPress \u306e\u52d5\u4f5c\u3092\u6b62\u3081\u308b\u3053\u3068\u306a\u304f\u5373\u6642\u53cd\u6620\u3055\u308c\u307e\u3059\u3002\u554f\u984c\u304c\u767a\u751f\u3057\u305f\u5834\u5408\u3067\u3082\u5b89\u5168\u306b\u5207\u308a\u623b\u305b\u307e\u3059\u3002<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"16_%E3%81%BE%E3%81%A8%E3%82%81\"><\/span>16. \u307e\u3068\u3081<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u672c\u8a18\u4e8b\u3067\u306f\u3001KUSANAGI 9\uff08AlmaLinux 9\uff09\u74b0\u5883\u306b\u304a\u3051\u308b WordPress \u3078\u306e Redis Object Cache \u30d7\u30e9\u30b0\u30a4\u30f3\u5c0e\u5165\u624b\u9806\u3092\u89e3\u8aac\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u5c0e\u5165\u306e\u30dd\u30a4\u30f3\u30c8\u6574\u7406\uff1a<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Redis \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u8d77\u52d5\u78ba\u8a8d<\/strong>\uff08<code>dnf install redis<\/code> \u2192 <code>systemctl enable --now redis<\/code>\uff09<\/li>\n\n\n\n<li><strong>phpredis \u62e1\u5f35\u306e\u78ba\u8a8d<\/strong>\uff08<code>php -m | grep redis<\/code>\uff09\u3002KUSANAGI 9 \u6700\u65b0\u7248\u306b\u306f phpredis \u304c\u540c\u68b1\u6e08\u307f\u306e\u305f\u3081\u8ffd\u52a0\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u4e0d\u8981<\/li>\n\n\n\n<li><strong>\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30fb\u6709\u52b9\u5316<\/strong>\uff08\u7ba1\u7406\u753b\u9762\u304b\u3089\uff09<\/li>\n\n\n\n<li><strong><code>wp-config.php<\/code> \u306b\u63a5\u7d9a\u5b9a\u6570\u3092\u8ffd\u8a18<\/strong>\uff08\u30db\u30b9\u30c8\u30fb\u30dd\u30fc\u30c8\u30fb\u30d7\u30ec\u30d5\u30a3\u30c3\u30af\u30b9\u30fb\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3092\u660e\u793a\uff09<\/li>\n\n\n\n<li><strong>Object Cache \u306e\u6709\u52b9\u5316<\/strong>\uff08\u7ba1\u7406\u753b\u9762\u304b\u3089\uff09<\/li>\n\n\n\n<li><strong>\u30d2\u30c3\u30c8\u7387\u30fbDB \u30af\u30a8\u30ea\u6570\u3067\u52b9\u679c\u3092\u5b9a\u91cf\u78ba\u8a8d<\/strong><\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">KUSANAGI 9 \u306e fcache\uff08FastCGI \u30ad\u30e3\u30c3\u30b7\u30e5\uff09\u30fbbcache\uff08WordPress \u30da\u30fc\u30b8\u30ad\u30e3\u30c3\u30b7\u30e5\uff09\u3068 Redis Object Cache \u306f\u5f79\u5272\u304c\u7570\u306a\u308a\u30013 \u3064\u3092\u7d44\u307f\u5408\u308f\u305b\u308b\u3053\u3068\u3067\u304a\u4e92\u3044\u306e\u5f31\u70b9\u3092\u88dc\u5b8c\u3067\u304d\u307e\u3059\u3002fcache\u30fbbcache \u304c\u672a\u30ed\u30b0\u30a4\u30f3\u30e6\u30fc\u30b6\u30fc\u3078\u306e\u9ad8\u901f\u914d\u4fe1\u3092\u62c5\u3044\u3001Redis Object Cache \u304c\u30da\u30fc\u30b8\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u6069\u6075\u3092\u53d7\u3051\u3089\u308c\u306a\u3044\u30ed\u30b0\u30a4\u30f3\u30e6\u30fc\u30b6\u30fc\u3084\u7ba1\u7406\u753b\u9762\u306e DB \u8ca0\u8377\u3092\u8efd\u6e1b\u3059\u308b\u2014\u2014\u3068\u3044\u3046\u5f79\u5272\u5206\u62c5\u3067\u3059\u3002\u7279\u306b\u30ed\u30b0\u30a4\u30f3\u30e6\u30fc\u30b6\u30fc\u304c\u591a\u3044\u30b5\u30a4\u30c8\u3084\u7ba1\u7406\u753b\u9762\u306e\u30ec\u30b9\u30dd\u30f3\u30b9\u304c\u6c17\u306b\u306a\u308b\u5834\u5408\u306b\u3001Redis Object Cache \u306e\u5c0e\u5165\u306f\u6709\u52b9\u306a\u9078\u629e\u80a2\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u8a2d\u5b9a\u306f\u30b7\u30f3\u30d7\u30eb\u3067\u5207\u308a\u623b\u3057\u3082\u5bb9\u6613\u306a\u305f\u3081\u3001\u307e\u305a\u306f\u30b9\u30c6\u30fc\u30b8\u30f3\u30b0\u74b0\u5883\u3067\u52d5\u4f5c\u3092\u78ba\u8a8d\u3057\u305f\u3046\u3048\u3067\u3001\u672c\u756a\u74b0\u5883\u3078\u306e\u9069\u7528\u3092\u691c\u8a0e\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><strong>\u4f1a\u54e1\u30b5\u30a4\u30c8\u30fb\u6a29\u9650\u5225\u30b3\u30f3\u30c6\u30f3\u30c4\u306e\u3042\u308b\u30b5\u30a4\u30c8\u3092\u904b\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3001<\/strong> \u30b9\u30c6\u30fc\u30b8\u30f3\u30b0\u74b0\u5883\u3067\u30ed\u30fc\u30eb\u5225\u30fb\u30ed\u30b0\u30a4\u30f3\u72b6\u614b\u5225\u306e\u8868\u793a\u5185\u5bb9\u3092\u5341\u5206\u306b\u691c\u8a3c\u3057\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066 <code>WP_REDIS_IGNORED_GROUPS<\/code> \u3067\u30ad\u30e3\u30c3\u30b7\u30e5\u9664\u5916\u30b0\u30eb\u30fc\u30d7\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3092\u5f37\u304f\u63a8\u5968\u3057\u307e\u3059\u3002\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u5411\u4e0a\u3068\u4f1a\u54e1\u60c5\u5831\u306e\u5b89\u5168\u6027\u3092\u4e21\u7acb\u3055\u305b\u305f\u904b\u7528\u8a2d\u8a08\u3092\u5fc3\u304c\u3051\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. \u306f\u3058\u3081\u306b \u30d7\u30e9\u30a4\u30e0\u30fb\u30b9\u30c8\u30e9\u30c6\u30b8\u30fc\u300cKUSANAGI\u300d\u958b\u767a\u30c1\u30fc\u30e0\u306e\u8b1d\u3067\u3059\u3002WordPress\u30b5\u30a4\u30c8\u3092\u904b\u7528\u3057\u3066\u3044\u308b\u3068\u3001\u30a2\u30af\u30bb\u30b9\u6570\u306e\u5897\u52a0\u3068\u3068 ... <a title=\"WordPress\u306bRedis Object Cache\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u5c0e\u5165\u3057\u3066\u9ad8\u901f\u5316\u3059\u308b\u624b\u9806\" class=\"read-more\" href=\"https:\/\/kusanagi.tokyo\/column\/archives\/column_11862\" aria-label=\"WordPress\u306bRedis Object Cache\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u5c0e\u5165\u3057\u3066\u9ad8\u901f\u5316\u3059\u308b\u624b\u9806 \u306b\u3064\u3044\u3066\u3055\u3089\u306b\u8aad\u3080\">Read more<\/a><\/p>\n","protected":false},"author":31,"featured_media":11867,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"content-type":"","footnotes":""},"categories":[21],"tags":[111],"series":[67],"journey":[],"product":[],"class_list":["post-11862","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress","tag-performance","series-engineer-blog","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33","no-featured-image-padding"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>WordPress\u306bRedis Object Cache\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u5c0e\u5165\u3057\u3066\u9ad8\u901f\u5316\u3059\u308b\u624b\u9806 - KUSANAGI Tech Column<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/kusanagi.tokyo\/column\/archives\/column_11862\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"WordPress\u306bRedis Object Cache\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u5c0e\u5165\u3057\u3066\u9ad8\u901f\u5316\u3059\u308b\u624b\u9806 - KUSANAGI Tech Column\" \/>\n<meta property=\"og:description\" content=\"1. \u306f\u3058\u3081\u306b \u30d7\u30e9\u30a4\u30e0\u30fb\u30b9\u30c8\u30e9\u30c6\u30b8\u30fc\u300cKUSANAGI\u300d\u958b\u767a\u30c1\u30fc\u30e0\u306e\u8b1d\u3067\u3059\u3002WordPress\u30b5\u30a4\u30c8\u3092\u904b\u7528\u3057\u3066\u3044\u308b\u3068\u3001\u30a2\u30af\u30bb\u30b9\u6570\u306e\u5897\u52a0\u3068\u3068 ... Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kusanagi.tokyo\/column\/archives\/column_11862\" \/>\n<meta property=\"og:site_name\" content=\"KUSANAGI Tech Column\" \/>\n<meta property=\"article:published_time\" content=\"2026-05-25T00:45:40+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-05-25T00:45:42+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/kusanagi.tokyo\/column\/wp-content\/uploads\/2026\/05\/wordpress_redis_object_cache.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1300\" \/>\n\t<meta property=\"og:image:height\" content=\"660\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"\u8b1d \u6c38\u4f73\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@kusanagi_saya\" \/>\n<meta name=\"twitter:site\" content=\"@kusanagi_saya\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/archives\\\/column_11862#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/archives\\\/column_11862\"},\"author\":{\"name\":\"\u8b1d \u6c38\u4f73\",\"@id\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/#\\\/schema\\\/person\\\/193f1d9eb4d95bdc6817d425aabb59f2\"},\"headline\":\"WordPress\u306bRedis Object Cache\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u5c0e\u5165\u3057\u3066\u9ad8\u901f\u5316\u3059\u308b\u624b\u9806\",\"datePublished\":\"2026-05-25T00:45:40+00:00\",\"dateModified\":\"2026-05-25T00:45:42+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/archives\\\/column_11862\"},\"wordCount\":407,\"publisher\":{\"@id\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/archives\\\/column_11862#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/wordpress_redis_object_cache.jpg\",\"keywords\":[\"\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\"],\"articleSection\":[\"WordPress\"],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/archives\\\/column_11862\",\"url\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/archives\\\/column_11862\",\"name\":\"WordPress\u306bRedis Object Cache\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u5c0e\u5165\u3057\u3066\u9ad8\u901f\u5316\u3059\u308b\u624b\u9806 - KUSANAGI Tech Column\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/archives\\\/column_11862#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/archives\\\/column_11862#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/wordpress_redis_object_cache.jpg\",\"datePublished\":\"2026-05-25T00:45:40+00:00\",\"dateModified\":\"2026-05-25T00:45:42+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/archives\\\/column_11862#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/archives\\\/column_11862\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/archives\\\/column_11862#primaryimage\",\"url\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/wordpress_redis_object_cache.jpg\",\"contentUrl\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/wordpress_redis_object_cache.jpg\",\"width\":1300,\"height\":660},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/archives\\\/column_11862#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u30db\u30fc\u30e0\",\"item\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"WordPress\u306bRedis Object Cache\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u5c0e\u5165\u3057\u3066\u9ad8\u901f\u5316\u3059\u308b\u624b\u9806\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/#website\",\"url\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/\",\"name\":\"KUSANAGI Tech Column\",\"description\":\"\u901f\u3055\u306e\u7406\u7531\u3092\u77e5\u308b\u3002\u5b89\u5168\u306e\u4ed5\u7d44\u307f\u3092\u77e5\u308b\u3002WordPress\u904b\u7528\u306e\u300c\u306a\u305c\uff1f\u300d\u3092\u89e3\u304f\u6280\u8853\u30b3\u30e9\u30e0\",\"publisher\":{\"@id\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/#organization\",\"name\":\"KUSANAGI Tech Column\",\"url\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/wp-content\\\/uploads\\\/2024\\\/07\\\/logo-tc.png\",\"contentUrl\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/wp-content\\\/uploads\\\/2024\\\/07\\\/logo-tc.png\",\"width\":716,\"height\":57,\"caption\":\"KUSANAGI Tech Column\"},\"image\":{\"@id\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/x.com\\\/kusanagi_saya\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/#\\\/schema\\\/person\\\/193f1d9eb4d95bdc6817d425aabb59f2\",\"name\":\"\u8b1d \u6c38\u4f73\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/60a03a9d99e237ff51af2f9545337248d81ba9bd895a37f33a5c4584f6850b6c?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/60a03a9d99e237ff51af2f9545337248d81ba9bd895a37f33a5c4584f6850b6c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/60a03a9d99e237ff51af2f9545337248d81ba9bd895a37f33a5c4584f6850b6c?s=96&d=mm&r=g\",\"caption\":\"\u8b1d \u6c38\u4f73\"},\"description\":\"\u5165\u793e\u3057\u3066\u304b\u3089\u306fWordPress\u958b\u767a\u3001\u30a4\u30f3\u30d5\u30e9\u30a8\u30f3\u30b8\u30cb\u30a2\u3001\u904b\u7528\u4fdd\u5b88\u3092\u7d4c\u3063\u3066\u3001\u73fe\u5728\u306fKUSANAGI\u3001WEXAL\u306e\u958b\u767a\u3092\u3057\u3066\u3044\u307e\u3059\u3002\",\"url\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/archives\\\/column_author\\\/xieyongjia\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"WordPress\u306bRedis Object Cache\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u5c0e\u5165\u3057\u3066\u9ad8\u901f\u5316\u3059\u308b\u624b\u9806 - KUSANAGI Tech Column","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/kusanagi.tokyo\/column\/archives\/column_11862","og_locale":"ja_JP","og_type":"article","og_title":"WordPress\u306bRedis Object Cache\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u5c0e\u5165\u3057\u3066\u9ad8\u901f\u5316\u3059\u308b\u624b\u9806 - KUSANAGI Tech Column","og_description":"1. \u306f\u3058\u3081\u306b \u30d7\u30e9\u30a4\u30e0\u30fb\u30b9\u30c8\u30e9\u30c6\u30b8\u30fc\u300cKUSANAGI\u300d\u958b\u767a\u30c1\u30fc\u30e0\u306e\u8b1d\u3067\u3059\u3002WordPress\u30b5\u30a4\u30c8\u3092\u904b\u7528\u3057\u3066\u3044\u308b\u3068\u3001\u30a2\u30af\u30bb\u30b9\u6570\u306e\u5897\u52a0\u3068\u3068 ... Read more","og_url":"https:\/\/kusanagi.tokyo\/column\/archives\/column_11862","og_site_name":"KUSANAGI Tech Column","article_published_time":"2026-05-25T00:45:40+00:00","article_modified_time":"2026-05-25T00:45:42+00:00","og_image":[{"width":1300,"height":660,"url":"https:\/\/kusanagi.tokyo\/column\/wp-content\/uploads\/2026\/05\/wordpress_redis_object_cache.jpg","type":"image\/jpeg"}],"author":"\u8b1d \u6c38\u4f73","twitter_card":"summary_large_image","twitter_creator":"@kusanagi_saya","twitter_site":"@kusanagi_saya","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kusanagi.tokyo\/column\/archives\/column_11862#article","isPartOf":{"@id":"https:\/\/kusanagi.tokyo\/column\/archives\/column_11862"},"author":{"name":"\u8b1d \u6c38\u4f73","@id":"https:\/\/kusanagi.tokyo\/column\/#\/schema\/person\/193f1d9eb4d95bdc6817d425aabb59f2"},"headline":"WordPress\u306bRedis Object Cache\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u5c0e\u5165\u3057\u3066\u9ad8\u901f\u5316\u3059\u308b\u624b\u9806","datePublished":"2026-05-25T00:45:40+00:00","dateModified":"2026-05-25T00:45:42+00:00","mainEntityOfPage":{"@id":"https:\/\/kusanagi.tokyo\/column\/archives\/column_11862"},"wordCount":407,"publisher":{"@id":"https:\/\/kusanagi.tokyo\/column\/#organization"},"image":{"@id":"https:\/\/kusanagi.tokyo\/column\/archives\/column_11862#primaryimage"},"thumbnailUrl":"https:\/\/kusanagi.tokyo\/column\/wp-content\/uploads\/2026\/05\/wordpress_redis_object_cache.jpg","keywords":["\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9"],"articleSection":["WordPress"],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/kusanagi.tokyo\/column\/archives\/column_11862","url":"https:\/\/kusanagi.tokyo\/column\/archives\/column_11862","name":"WordPress\u306bRedis Object Cache\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u5c0e\u5165\u3057\u3066\u9ad8\u901f\u5316\u3059\u308b\u624b\u9806 - KUSANAGI Tech Column","isPartOf":{"@id":"https:\/\/kusanagi.tokyo\/column\/#website"},"primaryImageOfPage":{"@id":"https:\/\/kusanagi.tokyo\/column\/archives\/column_11862#primaryimage"},"image":{"@id":"https:\/\/kusanagi.tokyo\/column\/archives\/column_11862#primaryimage"},"thumbnailUrl":"https:\/\/kusanagi.tokyo\/column\/wp-content\/uploads\/2026\/05\/wordpress_redis_object_cache.jpg","datePublished":"2026-05-25T00:45:40+00:00","dateModified":"2026-05-25T00:45:42+00:00","breadcrumb":{"@id":"https:\/\/kusanagi.tokyo\/column\/archives\/column_11862#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kusanagi.tokyo\/column\/archives\/column_11862"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/kusanagi.tokyo\/column\/archives\/column_11862#primaryimage","url":"https:\/\/kusanagi.tokyo\/column\/wp-content\/uploads\/2026\/05\/wordpress_redis_object_cache.jpg","contentUrl":"https:\/\/kusanagi.tokyo\/column\/wp-content\/uploads\/2026\/05\/wordpress_redis_object_cache.jpg","width":1300,"height":660},{"@type":"BreadcrumbList","@id":"https:\/\/kusanagi.tokyo\/column\/archives\/column_11862#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u30db\u30fc\u30e0","item":"https:\/\/kusanagi.tokyo\/column"},{"@type":"ListItem","position":2,"name":"WordPress\u306bRedis Object Cache\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u5c0e\u5165\u3057\u3066\u9ad8\u901f\u5316\u3059\u308b\u624b\u9806"}]},{"@type":"WebSite","@id":"https:\/\/kusanagi.tokyo\/column\/#website","url":"https:\/\/kusanagi.tokyo\/column\/","name":"KUSANAGI Tech Column","description":"\u901f\u3055\u306e\u7406\u7531\u3092\u77e5\u308b\u3002\u5b89\u5168\u306e\u4ed5\u7d44\u307f\u3092\u77e5\u308b\u3002WordPress\u904b\u7528\u306e\u300c\u306a\u305c\uff1f\u300d\u3092\u89e3\u304f\u6280\u8853\u30b3\u30e9\u30e0","publisher":{"@id":"https:\/\/kusanagi.tokyo\/column\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/kusanagi.tokyo\/column\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Organization","@id":"https:\/\/kusanagi.tokyo\/column\/#organization","name":"KUSANAGI Tech Column","url":"https:\/\/kusanagi.tokyo\/column\/","logo":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/kusanagi.tokyo\/column\/#\/schema\/logo\/image\/","url":"https:\/\/kusanagi.tokyo\/column\/wp-content\/uploads\/2024\/07\/logo-tc.png","contentUrl":"https:\/\/kusanagi.tokyo\/column\/wp-content\/uploads\/2024\/07\/logo-tc.png","width":716,"height":57,"caption":"KUSANAGI Tech Column"},"image":{"@id":"https:\/\/kusanagi.tokyo\/column\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/kusanagi_saya"]},{"@type":"Person","@id":"https:\/\/kusanagi.tokyo\/column\/#\/schema\/person\/193f1d9eb4d95bdc6817d425aabb59f2","name":"\u8b1d \u6c38\u4f73","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/secure.gravatar.com\/avatar\/60a03a9d99e237ff51af2f9545337248d81ba9bd895a37f33a5c4584f6850b6c?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/60a03a9d99e237ff51af2f9545337248d81ba9bd895a37f33a5c4584f6850b6c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/60a03a9d99e237ff51af2f9545337248d81ba9bd895a37f33a5c4584f6850b6c?s=96&d=mm&r=g","caption":"\u8b1d \u6c38\u4f73"},"description":"\u5165\u793e\u3057\u3066\u304b\u3089\u306fWordPress\u958b\u767a\u3001\u30a4\u30f3\u30d5\u30e9\u30a8\u30f3\u30b8\u30cb\u30a2\u3001\u904b\u7528\u4fdd\u5b88\u3092\u7d4c\u3063\u3066\u3001\u73fe\u5728\u306fKUSANAGI\u3001WEXAL\u306e\u958b\u767a\u3092\u3057\u3066\u3044\u307e\u3059\u3002","url":"https:\/\/kusanagi.tokyo\/column\/archives\/column_author\/xieyongjia"}]}},"_links":{"self":[{"href":"https:\/\/kusanagi.tokyo\/column\/wp-json\/wp\/v2\/posts\/11862","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kusanagi.tokyo\/column\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kusanagi.tokyo\/column\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kusanagi.tokyo\/column\/wp-json\/wp\/v2\/users\/31"}],"replies":[{"embeddable":true,"href":"https:\/\/kusanagi.tokyo\/column\/wp-json\/wp\/v2\/comments?post=11862"}],"version-history":[{"count":8,"href":"https:\/\/kusanagi.tokyo\/column\/wp-json\/wp\/v2\/posts\/11862\/revisions"}],"predecessor-version":[{"id":11874,"href":"https:\/\/kusanagi.tokyo\/column\/wp-json\/wp\/v2\/posts\/11862\/revisions\/11874"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kusanagi.tokyo\/column\/wp-json\/wp\/v2\/media\/11867"}],"wp:attachment":[{"href":"https:\/\/kusanagi.tokyo\/column\/wp-json\/wp\/v2\/media?parent=11862"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kusanagi.tokyo\/column\/wp-json\/wp\/v2\/categories?post=11862"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kusanagi.tokyo\/column\/wp-json\/wp\/v2\/tags?post=11862"},{"taxonomy":"series","embeddable":true,"href":"https:\/\/kusanagi.tokyo\/column\/wp-json\/wp\/v2\/series?post=11862"},{"taxonomy":"journey","embeddable":true,"href":"https:\/\/kusanagi.tokyo\/column\/wp-json\/wp\/v2\/journey?post=11862"},{"taxonomy":"product","embeddable":true,"href":"https:\/\/kusanagi.tokyo\/column\/wp-json\/wp\/v2\/product?post=11862"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}