{"id":10639,"date":"2023-09-13T09:09:16","date_gmt":"2023-09-13T00:09:16","guid":{"rendered":"https:\/\/www.prime-strategy.co.jp\/column\/archives\/column_10639"},"modified":"2026-02-22T21:05:44","modified_gmt":"2026-02-22T12:05:44","slug":"kusanagi-bcache-%e3%82%b3%e3%83%9e%e3%83%b3%e3%83%89%e3%81%a8%e3%81%9d%e3%81%ae%e4%bb%95%e7%b5%84%e3%81%bf","status":"publish","type":"post","link":"https:\/\/kusanagi.tokyo\/column\/en\/archives\/column_10639","title":{"rendered":"The kusanagi bcache Command and How It Works\u00a0"},"content":{"rendered":"\n<p>In this article, we\u2019ll explain the kusanagi bcache command, which is designed to improve page load speed and reduce server load. One of its key features is that it leverages WordPress's built-in caching mechanism and stores cache data in the database. Since it runs on PHP, it allows for fine-grained control over caching behavior. We'll also cover how to enable\/disable bcache, clear the cache, and configure cache expiration times and query string rules.&nbsp;<\/p>\n\n\n\n<p>This article is a follow-up to our previous explanation of the kusanagi fcache command.&nbsp;<\/p>\n\n\n\n<p>Like fcache, bcache stores already-rendered pages and reuses them for identical requests to improve response speed and reduce server resource consumption. However, unlike fcache, which runs on Nginx, bcache utilizes WordPress\u2019s native caching system and operates via PHP. While this means it may not match fcache in terms of raw speed or CPU efficiency, it does offer more flexibility and control through PHP logic.&nbsp;<\/p>\n\n\n\n<p>As mentioned, bcache uses WordPress\u2019s built-in caching system, but unlike typical WordPress caching plugins, bcache stores its cached data in the database. This is one of its most distinctive features.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"KUSANAGI_Commands_Related_to_bcache\"><\/span><strong> KUSANAGI Commands Related to bcache<\/strong>&nbsp;<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Checking_the_bcache_Status\"><\/span><strong>Checking the bcache Status<\/strong>&nbsp;<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>To check whether bcache is enabled for a specific profile, use:&nbsp;<br><br>Like the fcache command, you can specify a profile name as an optional parameter. If omitted, the current profile will be used by default.&nbsp;<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code># kusanagi bcache status [profile]\nbcache is off.\nbcache completed.<\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Enabling_bcache\"><\/span><strong>Enabling bcache<\/strong>&nbsp;<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>To enable bcache for a specific profile, run:&nbsp;<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code># kusanagi bcache on [profile]\nTurning bcache on. \nbcache completed.<\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Disabling_bcache\"><\/span><strong>Disabling bcache<\/strong>&nbsp;<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>To disable bcache for a specific profile, run:&nbsp;<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code># kusanagi bcache off [profile]\nTurning bcache off.\nbcache completed.<\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Clearing_bcache_Cache_Data\"><\/span><strong>Clearing bcache Cache Data<\/strong>&nbsp;<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>To clear bcache cache data for a specific profile, use:&nbsp;<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code># kusanagi bcache clear [--path] [profile]\nClearing bcache.\ntruncate table `wp_site_cache`\nbcache completed.<\/code><\/pre><\/div>\n\n\n\n<p>In addition to specifying a profile, you can use the --path option to target the cache for a specific URL.&nbsp;<\/p>\n\n\n\n<p>\u26a0\ufe0f Note: If you're running this command on a site with many pages, clearing cache may place a significant load on the database.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Configuring_bcache\"><\/span><strong> Configuring bcache<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Since bcache runs on PHP, it offers fine-grained control over caching behavior. These settings can be adjusted from the <strong>\u201cPage Cache\u201d<\/strong> tab under the <strong>KUSANAGI menu<\/strong> in the WordPress admin dashboard.&nbsp;<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"760\" height=\"701\" src=\"https:\/\/www.prime-strategy.co.jp\/column\/wp-content\/uploads\/2023\/09\/image.png\" alt=\"\" class=\"wp-image-7197\" style=\"width:512px;height:472px\" srcset=\"https:\/\/kusanagi.tokyo\/column\/wp-content\/uploads\/2023\/09\/image.png 760w, https:\/\/kusanagi.tokyo\/column\/wp-content\/uploads\/2023\/09\/image-300x277.png 300w\" sizes=\"auto, (max-width: 760px) 100vw, 760px\" \/><\/figure>\n<\/div>\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Cache_Expiration_Time\"><\/span>C<strong>ache Expiration Time<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>You can set different cache lifetimes for the <strong>front page<\/strong>, <strong>archive pages<\/strong> (such as categories or tags), and <strong>individual posts<\/strong>.&nbsp;<\/p>\n\n\n\n<p>By default:&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Front page and archive pages: <strong>60 minutes<\/strong>&nbsp;<\/li>\n\n\n\n<li>Individual posts: <strong>360 minutes<\/strong>&nbsp;<\/li>\n<\/ul>\n\n\n\n<p>Reducing the cache duration allows updated content to appear sooner, but it also increases server load. Adjust these settings based on your update frequency, performance needs, and the cache-clearing behavior described below in \u201cCache Clearing on Post Publish.\u201d&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Excluding_URLs_from_Cache\"><\/span><strong>Excluding URLs from Cache<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>In some cases, certain pages or URLs require real-time updates and should not be cached. To exclude such pages, add their paths to the <strong>\u201cExclude URLs from Cache\u201d<\/strong> setting.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Query_Strings_to_Include_in_Cache_Keys\"><\/span><strong>Query Strings to Include in Cache Keys<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>By default, bcache ignores query strings when determining whether to serve a cached page. This avoids bloating the cache and keeps performance high.&nbsp;<\/p>\n\n\n\n<p>However, if your site changes content based on specific query strings, this default behavior could lead to incorrect content being displayed. To handle this, you can specify which query string parameters should be included in the cache key.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Cache_Clearing_on_Post_Publish\"><\/span><strong>Cache Clearing on Post Publish<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>When publishing a new post, you can configure whether and how the cache should be cleared:&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Do not clear<\/strong>: No cache is removed. Updates may take time to reflect, so consider using shorter cache durations.&nbsp;<\/li>\n\n\n\n<li><strong>Clear all<\/strong>: Removes all cache data (equivalent to running kusanagi bcache clear). Use this when you want updates to reflect immediately\u2014longer cache lifetimes are generally fine in this case.&nbsp;<\/li>\n\n\n\n<li><strong>Clear post only<\/strong> \/ <strong>Clear post and front page<\/strong>: These options perform partial cache clearing, similar to using the --path option with kusanagi bcache clear.\u00a0<\/li>\n<\/ul>\n\n\n\n<p>\u26a0\ufe0f On large sites with many pages, partial cache clearing may cause high database load, so plan accordingly when configuring these settings.\u00a0<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"TIPS\"><\/span><strong> TIPS<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Using_a_Separate_Database_for_bcache\"><\/span><strong>Using a Separate Database for bcache<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>You can configure bcache to store its cache data in a separate database by defining the following constants in your wp-config.php file:&nbsp;<\/p>\n\n\n\n<p>define('CACHE_DB_NAME', 'your_cache_db_name');&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \/\/ Name of the cache database&nbsp;&nbsp;&nbsp;<br>define('CACHE_DB_USER', 'your_cache_db_user');&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \/\/ Username for the cache database<br>define('CACHE_DB_PASSWORD', 'your_cache_db_password'); \/\/ Password for the cache database&nbsp;&nbsp;&nbsp;<br>define('CACHE_DB_HOST', 'your_cache_db_host');&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \/\/ Hostname of the cache database server&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/p>\n\n\n\n<p>This setup is useful in environments where the database server and the WordPress application server are on different machines.&nbsp;<\/p>\n\n\n\n<p>Because bcache stores full HTML responses\u2014which tend to be relatively large\u2014transferring them across separate servers can introduce network latency, which reduces caching efficiency. By placing the cache database on the same server as the application, you can reduce this overhead and improve performance.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Integration_with_HTML_Replacement_Feature\"><\/span><strong>Integration with HTML Replacement Feature<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>KUSANAGI\u2019s official plugin includes an HTML replacement feature, which allows you to modify URLs in the generated HTML\u2014for example, to use different FQDNs for the admin area or media files.&nbsp;<\/p>\n\n\n\n<p>bcache is designed to work with this feature. When serving cached content, it applies the defined HTML replacements before delivering the response, ensuring compatibility with your site\u2019s customized output requirements.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"4Notes_on_Using_bcache\"><\/span><strong>4.Notes on Using bcache<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>As mentioned earlier, bcache leverages WordPress\u2019s built-in caching system. Because of this, it is <strong>not compatible with other WordPress caching plugins<\/strong> such as <strong>WP Super Cache<\/strong> or <strong>W3 Total Cache<\/strong>. Do not use them together.&nbsp;<\/p>\n\n\n\n<p>The bcache feature is only available if the <strong>KUSANAGI-provided WordPress plugin<\/strong> is installed. This plugin is automatically included when you provision WordPress using KUSANAGI. However, if your WordPress site was migrated from another environment (not provisioned through KUSANAGI), this plugin may not be present.&nbsp;<\/p>\n\n\n\n<p>In that case, provision WordPress once with KUSANAGI, then copy the directory:&nbsp;<\/p>\n\n\n\n<p>wp-content\/plugins\/mu-plugins&nbsp;<\/p>\n\n\n\n<p>and overwrite the same directory in your migrated site. This will ensure the required plugin is installed.&nbsp;<\/p>\n\n\n\n<h3 class=\"gb-headline gb-headline-4d9fad5f gb-headline-text\"><span class=\"ez-toc-section\" id=\"Placement_of_wp-configphp\"><\/span><strong>Placement of wp-config.php<\/strong>&nbsp;<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Also note that the kusanagi bcache command <strong>only works if wp-config.php is located directly inside or one level above the DocumentRoot directory<\/strong> that was set during provisioning.&nbsp;<\/p>\n\n\n\n<p>If your site was migrated from another system and WordPress is installed in a subdirectory\u2014or if you have multiple WordPress installations in different directories\u2014KUSANAGI\u2019s bcache command may not be able to enable or disable caching through the CLI.&nbsp;<\/p>\n\n\n\n<p>However, even in such cases, the bcache <strong>functionality can still be used<\/strong> as long as the KUSANAGI plugin is installed. You can enable or disable caching manually by setting the WP_CACHE constant in wp-config.php.&nbsp;<\/p>\n\n\n\n<p>define('WP_CACHE', true);&nbsp; \/\/ to enable&nbsp;<br>define('WP_CACHE', false); \/\/ to disable&nbsp;<\/p>\n\n\n\n<p>Note: Query strings used by WordPress\u2019s default permalink structure\u2014such as p, author, and cat\u2014are included in the cache conditions.&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article, we\u2019ll explain the kusanagi bcache command, which is designed to improve page load speed and reduce server load. One of its key features is that it leverages WordPress's built-in caching mechanism and stores cache data in the database. Since it runs on PHP, it allows for fine-grained control over caching behavior. We'll also cover how to enable\/disable bcache, clear the cache, and configure cache expiration times and ... <a title=\"The kusanagi bcache Command and How It Works\u00a0\" class=\"read-more\" href=\"https:\/\/kusanagi.tokyo\/column\/en\/archives\/column_10639\" aria-label=\"Read more about The kusanagi bcache Command and How It Works\u00a0\">Read more<\/a><\/p>\n","protected":false},"author":32,"featured_media":10656,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"content-type":"","footnotes":""},"categories":[92,141],"tags":[119],"series":[86],"journey":[127],"product":[121],"class_list":["post-10639","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-kusanagi-en","category-wordpress","tag-performance","series-kusanagi-command-en","journey-start","product-kusanagi","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.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>The kusanagi bcache Command and How It Works\u00a0 - 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\/en\/archives\/column_10639\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"The kusanagi bcache Command and How It Works\u00a0 - KUSANAGI Tech Column\" \/>\n<meta property=\"og:description\" content=\"In this article, we\u2019ll explain the kusanagi bcache command, which is designed to improve page load speed and reduce server load. One of its key features is that it leverages WordPress&#039;s built-in caching mechanism and stores cache data in the database. Since it runs on PHP, it allows for fine-grained control over caching behavior. We&#039;ll also cover how to enable\/disable bcache, clear the cache, and configure cache expiration times and ... Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kusanagi.tokyo\/column\/en\/archives\/column_10639\" \/>\n<meta property=\"og:site_name\" content=\"KUSANAGI Tech Column\" \/>\n<meta property=\"article:published_time\" content=\"2023-09-13T00:09:16+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-22T12:05:44+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/kusanagi.tokyo\/column\/wp-content\/uploads\/2023\/09\/The-kusanagi-bcache-Command-and-How-It-Works_.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"520\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"\u5927\u66f2\u4ec1\" \/>\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\\\/en\\\/archives\\\/column_10639#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/en\\\/archives\\\/column_10639\"},\"author\":{\"name\":\"\u5927\u66f2\u4ec1\",\"@id\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/en#\\\/schema\\\/person\\\/3c95faebd6c1c61d7e9c52c3a1075e7a\"},\"headline\":\"The kusanagi bcache Command and How It Works\u00a0\",\"datePublished\":\"2023-09-13T00:09:16+00:00\",\"dateModified\":\"2026-02-22T12:05:44+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/en\\\/archives\\\/column_10639\"},\"wordCount\":1186,\"publisher\":{\"@id\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/en#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/en\\\/archives\\\/column_10639#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/The-kusanagi-bcache-Command-and-How-It-Works_.png\",\"keywords\":[\"Performance\"],\"articleSection\":[\"KUSANAGI\",\"WordPress\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/en\\\/archives\\\/column_10639\",\"url\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/en\\\/archives\\\/column_10639\",\"name\":\"The kusanagi bcache Command and How It Works\u00a0 - KUSANAGI Tech Column\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/en#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/en\\\/archives\\\/column_10639#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/en\\\/archives\\\/column_10639#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/The-kusanagi-bcache-Command-and-How-It-Works_.png\",\"datePublished\":\"2023-09-13T00:09:16+00:00\",\"dateModified\":\"2026-02-22T12:05:44+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/en\\\/archives\\\/column_10639#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/en\\\/archives\\\/column_10639\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/en\\\/archives\\\/column_10639#primaryimage\",\"url\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/The-kusanagi-bcache-Command-and-How-It-Works_.png\",\"contentUrl\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/The-kusanagi-bcache-Command-and-How-It-Works_.png\",\"width\":1024,\"height\":520},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/en\\\/archives\\\/column_10639#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u30db\u30fc\u30e0\",\"item\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/en\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"The kusanagi bcache Command and How It Works\u00a0\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/en#website\",\"url\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/en\",\"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\\\/en#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/en?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/en#organization\",\"name\":\"KUSANAGI Tech Column\",\"url\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/en\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/en#\\\/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\\\/en#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/x.com\\\/kusanagi_saya\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/en#\\\/schema\\\/person\\\/3c95faebd6c1c61d7e9c52c3a1075e7a\",\"name\":\"\u5927\u66f2\u4ec1\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/6a41c25a2f3eb62f523506bfb46ceb0a7b8b49807655b8bd196f5e3c2cd0cedb?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/6a41c25a2f3eb62f523506bfb46ceb0a7b8b49807655b8bd196f5e3c2cd0cedb?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/6a41c25a2f3eb62f523506bfb46ceb0a7b8b49807655b8bd196f5e3c2cd0cedb?s=96&d=mm&r=g\",\"caption\":\"\u5927\u66f2\u4ec1\"},\"description\":\"\u300cWP SiteManager\u300d\u300cEditor Templates\u300d\u4ed6\u3001\u591a\u6570\u306eWordPress\u516c\u5f0f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u63b2\u8f09\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u958b\u767a\u3002 \u3053\u308c\u307e\u3067\u306b\u30ea\u30ea\u30fc\u30b9\u3057\u305fWordPress\u30b5\u30a4\u30c8\u6570\u306f200\u4ef6\u8d85\u3002\u8c4a\u5bcc\u306a\u7d4c\u9a13\u3092\u6d3b\u304b\u3057\u3001\u304a\u5ba2\u69d8\u306e\u76ee\u7684\u306b\u6700\u9069\u306a\u6a5f\u80fd\u3092\u3054\u63d0\u4f9b\u3055\u305b\u3066\u3044\u305f\u3060\u304d\u307e\u3059\u3002\",\"url\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/en\\\/archives\\\/column_author\\\/hitoshi\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"The kusanagi bcache Command and How It Works\u00a0 - 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\/en\/archives\/column_10639","og_locale":"en_US","og_type":"article","og_title":"The kusanagi bcache Command and How It Works\u00a0 - KUSANAGI Tech Column","og_description":"In this article, we\u2019ll explain the kusanagi bcache command, which is designed to improve page load speed and reduce server load. One of its key features is that it leverages WordPress's built-in caching mechanism and stores cache data in the database. Since it runs on PHP, it allows for fine-grained control over caching behavior. We'll also cover how to enable\/disable bcache, clear the cache, and configure cache expiration times and ... Read more","og_url":"https:\/\/kusanagi.tokyo\/column\/en\/archives\/column_10639","og_site_name":"KUSANAGI Tech Column","article_published_time":"2023-09-13T00:09:16+00:00","article_modified_time":"2026-02-22T12:05:44+00:00","og_image":[{"width":1024,"height":520,"url":"https:\/\/kusanagi.tokyo\/column\/wp-content\/uploads\/2023\/09\/The-kusanagi-bcache-Command-and-How-It-Works_.png","type":"image\/png"}],"author":"\u5927\u66f2\u4ec1","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\/en\/archives\/column_10639#article","isPartOf":{"@id":"https:\/\/kusanagi.tokyo\/column\/en\/archives\/column_10639"},"author":{"name":"\u5927\u66f2\u4ec1","@id":"https:\/\/kusanagi.tokyo\/column\/en#\/schema\/person\/3c95faebd6c1c61d7e9c52c3a1075e7a"},"headline":"The kusanagi bcache Command and How It Works\u00a0","datePublished":"2023-09-13T00:09:16+00:00","dateModified":"2026-02-22T12:05:44+00:00","mainEntityOfPage":{"@id":"https:\/\/kusanagi.tokyo\/column\/en\/archives\/column_10639"},"wordCount":1186,"publisher":{"@id":"https:\/\/kusanagi.tokyo\/column\/en#organization"},"image":{"@id":"https:\/\/kusanagi.tokyo\/column\/en\/archives\/column_10639#primaryimage"},"thumbnailUrl":"https:\/\/kusanagi.tokyo\/column\/wp-content\/uploads\/2023\/09\/The-kusanagi-bcache-Command-and-How-It-Works_.png","keywords":["Performance"],"articleSection":["KUSANAGI","WordPress"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/kusanagi.tokyo\/column\/en\/archives\/column_10639","url":"https:\/\/kusanagi.tokyo\/column\/en\/archives\/column_10639","name":"The kusanagi bcache Command and How It Works\u00a0 - KUSANAGI Tech Column","isPartOf":{"@id":"https:\/\/kusanagi.tokyo\/column\/en#website"},"primaryImageOfPage":{"@id":"https:\/\/kusanagi.tokyo\/column\/en\/archives\/column_10639#primaryimage"},"image":{"@id":"https:\/\/kusanagi.tokyo\/column\/en\/archives\/column_10639#primaryimage"},"thumbnailUrl":"https:\/\/kusanagi.tokyo\/column\/wp-content\/uploads\/2023\/09\/The-kusanagi-bcache-Command-and-How-It-Works_.png","datePublished":"2023-09-13T00:09:16+00:00","dateModified":"2026-02-22T12:05:44+00:00","breadcrumb":{"@id":"https:\/\/kusanagi.tokyo\/column\/en\/archives\/column_10639#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kusanagi.tokyo\/column\/en\/archives\/column_10639"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/kusanagi.tokyo\/column\/en\/archives\/column_10639#primaryimage","url":"https:\/\/kusanagi.tokyo\/column\/wp-content\/uploads\/2023\/09\/The-kusanagi-bcache-Command-and-How-It-Works_.png","contentUrl":"https:\/\/kusanagi.tokyo\/column\/wp-content\/uploads\/2023\/09\/The-kusanagi-bcache-Command-and-How-It-Works_.png","width":1024,"height":520},{"@type":"BreadcrumbList","@id":"https:\/\/kusanagi.tokyo\/column\/en\/archives\/column_10639#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u30db\u30fc\u30e0","item":"https:\/\/kusanagi.tokyo\/column\/en"},{"@type":"ListItem","position":2,"name":"The kusanagi bcache Command and How It Works\u00a0"}]},{"@type":"WebSite","@id":"https:\/\/kusanagi.tokyo\/column\/en#website","url":"https:\/\/kusanagi.tokyo\/column\/en","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\/en#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/kusanagi.tokyo\/column\/en?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/kusanagi.tokyo\/column\/en#organization","name":"KUSANAGI Tech Column","url":"https:\/\/kusanagi.tokyo\/column\/en","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/kusanagi.tokyo\/column\/en#\/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\/en#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/kusanagi_saya"]},{"@type":"Person","@id":"https:\/\/kusanagi.tokyo\/column\/en#\/schema\/person\/3c95faebd6c1c61d7e9c52c3a1075e7a","name":"\u5927\u66f2\u4ec1","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/6a41c25a2f3eb62f523506bfb46ceb0a7b8b49807655b8bd196f5e3c2cd0cedb?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/6a41c25a2f3eb62f523506bfb46ceb0a7b8b49807655b8bd196f5e3c2cd0cedb?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6a41c25a2f3eb62f523506bfb46ceb0a7b8b49807655b8bd196f5e3c2cd0cedb?s=96&d=mm&r=g","caption":"\u5927\u66f2\u4ec1"},"description":"\u300cWP SiteManager\u300d\u300cEditor Templates\u300d\u4ed6\u3001\u591a\u6570\u306eWordPress\u516c\u5f0f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u63b2\u8f09\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u958b\u767a\u3002 \u3053\u308c\u307e\u3067\u306b\u30ea\u30ea\u30fc\u30b9\u3057\u305fWordPress\u30b5\u30a4\u30c8\u6570\u306f200\u4ef6\u8d85\u3002\u8c4a\u5bcc\u306a\u7d4c\u9a13\u3092\u6d3b\u304b\u3057\u3001\u304a\u5ba2\u69d8\u306e\u76ee\u7684\u306b\u6700\u9069\u306a\u6a5f\u80fd\u3092\u3054\u63d0\u4f9b\u3055\u305b\u3066\u3044\u305f\u3060\u304d\u307e\u3059\u3002","url":"https:\/\/kusanagi.tokyo\/column\/en\/archives\/column_author\/hitoshi"}]}},"_links":{"self":[{"href":"https:\/\/kusanagi.tokyo\/column\/en\/wp-json\/wp\/v2\/posts\/10639","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kusanagi.tokyo\/column\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kusanagi.tokyo\/column\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kusanagi.tokyo\/column\/en\/wp-json\/wp\/v2\/users\/32"}],"replies":[{"embeddable":true,"href":"https:\/\/kusanagi.tokyo\/column\/en\/wp-json\/wp\/v2\/comments?post=10639"}],"version-history":[{"count":9,"href":"https:\/\/kusanagi.tokyo\/column\/en\/wp-json\/wp\/v2\/posts\/10639\/revisions"}],"predecessor-version":[{"id":10702,"href":"https:\/\/kusanagi.tokyo\/column\/en\/wp-json\/wp\/v2\/posts\/10639\/revisions\/10702"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kusanagi.tokyo\/column\/en\/wp-json\/wp\/v2\/media\/10656"}],"wp:attachment":[{"href":"https:\/\/kusanagi.tokyo\/column\/en\/wp-json\/wp\/v2\/media?parent=10639"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kusanagi.tokyo\/column\/en\/wp-json\/wp\/v2\/categories?post=10639"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kusanagi.tokyo\/column\/en\/wp-json\/wp\/v2\/tags?post=10639"},{"taxonomy":"series","embeddable":true,"href":"https:\/\/kusanagi.tokyo\/column\/en\/wp-json\/wp\/v2\/series?post=10639"},{"taxonomy":"journey","embeddable":true,"href":"https:\/\/kusanagi.tokyo\/column\/en\/wp-json\/wp\/v2\/journey?post=10639"},{"taxonomy":"product","embeddable":true,"href":"https:\/\/kusanagi.tokyo\/column\/en\/wp-json\/wp\/v2\/product?post=10639"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}