{"id":10647,"date":"2023-07-27T16:40:00","date_gmt":"2023-07-27T07:40:00","guid":{"rendered":"https:\/\/www.prime-strategy.co.jp\/column\/archives\/column_10647"},"modified":"2026-02-22T21:07:13","modified_gmt":"2026-02-22T12:07:13","slug":"kusanagi%e3%83%97%e3%83%a9%e3%82%b0%e3%82%a4%e3%83%b3%e3%81%ae%e3%83%86%e3%83%bc%e3%83%9e%e3%82%a2%e3%82%af%e3%82%bb%e3%83%a9%e3%83%ac%e3%83%bc%e3%82%bf%e3%83%bc%e3%81%ae%e7%b4%b9%e4%bb%8b","status":"publish","type":"post","link":"https:\/\/kusanagi.tokyo\/column\/en\/archives\/column_10647","title":{"rendered":"Introducing the \u201cTheme Accelerator\u201d in the KUSANAGI Plugin"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Prime Strategy\u2019s KUSANAGI Plugin has been updated with a new feature: the <strong>Theme Accelerator<\/strong>.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This functionality improves backend performance by caching frequently reused and rarely changed theme data\u2014including certain Full Site Editing (FSE) components\u2014allowing themes to load faster and respond more efficiently.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The accelerator activates only under specific conditions and supports the creation and deletion of cache data as needed. Performance testing has shown a reduction in page access time ranging from <strong>9.2% to 55.3%<\/strong> for general themes, and <strong>9.7% to 10.9%<\/strong> for FSE themes, significantly supporting faster and more efficient website operation.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This feature was introduced in KUSANAGI Plugin version 20230705-1. I'm Xie from the Prime Strategy KUSANAGI development team, and in this article, I\u2019ll walk you through how the Theme Accelerator works.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"What_Is_the_%E2%80%9CTheme_Accelerator%E2%80%9D\"><\/span><strong>What Is the \u201cTheme Accelerator\u201d?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The <strong>Theme Accelerator<\/strong> is a feature designed to speed up backend processing for websites <strong>without relying on full-page caching<\/strong>.It was developed based on in-depth analysis of theme data structures and rendering processes.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This analysis revealed that <strong>certain theme elements\u2014specifically, commonly reused and rarely updated data, as well as parts of Full Site Editing (FSE) themes\u2014can be cached<\/strong> to significantly boost performance.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Activation_Requirements\"><\/span><strong>Activation Requirements<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">To use the Theme Accelerator, the following condition must be met:&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Enable it from the WordPress admin dashboard<\/strong>&nbsp;<br>Navigate to:&nbsp;<br>KUSANAGI \u2192 Advanced \u2192 Theme Accelerator<img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"540\" class=\"wp-image-6689\" style=\"width: 600px;\" src=\"https:\/\/www.prime-strategy.co.jp\/column\/wp-content\/uploads\/2023\/07\/e4c8697c133bd333053f113e7a662756.png\" alt=\"\" srcset=\"https:\/\/kusanagi.tokyo\/column\/wp-content\/uploads\/2023\/07\/e4c8697c133bd333053f113e7a662756.png 1822w, https:\/\/kusanagi.tokyo\/column\/wp-content\/uploads\/2023\/07\/e4c8697c133bd333053f113e7a662756-300x270.png 300w, https:\/\/kusanagi.tokyo\/column\/wp-content\/uploads\/2023\/07\/e4c8697c133bd333053f113e7a662756-1024x922.png 1024w, https:\/\/kusanagi.tokyo\/column\/wp-content\/uploads\/2023\/07\/e4c8697c133bd333053f113e7a662756-768x692.png 768w, https:\/\/kusanagi.tokyo\/column\/wp-content\/uploads\/2023\/07\/e4c8697c133bd333053f113e7a662756-1536x1383.png 1536w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/li>\n\n\n\n<li>Enabling APCu&nbsp;<\/li>\n\n\n\n<li>The request is made from the frontend (not admin panel)&nbsp;<\/li>\n\n\n\n<li>The HTTP method is GET&nbsp;<\/li>\n\n\n\n<li>The HTTP response code is 200 OK&nbsp;<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_It_Works\"><\/span><strong>How It Works<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">As mentioned earlier, the Theme Accelerator currently performs <strong>partial caching<\/strong> on two key areas:&nbsp;<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Theme header and footer data<\/strong>&nbsp;<\/li>\n\n\n\n<li><strong>Full Site Editing (FSE) theme structure data<\/strong>&nbsp;<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Let\u2019s break that down further:&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>For <strong>non-FSE themes<\/strong>, the accelerator caches data from hooks used in the theme\u2019s header and footer.&nbsp;<br>Specifically, it caches hook data whose names include <strong>\"head\"<\/strong> or <strong>\"foot\"<\/strong>, but <strong>do not include \"admin\"<\/strong> in the name.&nbsp;<\/li>\n\n\n\n<li>For <strong>FSE themes<\/strong>, the structure information is <strong>not fetched from the database<\/strong>.&nbsp;<br>Instead, it is stored in cache to <strong>reduce database access<\/strong>, minimizing overhead when retrieving theme layout details.&nbsp;<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Note: The FSE-related functionality is only effective if the active theme is an FSE theme.<\/em>&nbsp;<\/p>\n\n\n\n<h2 class=\"gb-headline gb-headline-56b03594 gb-headline-text\"><span class=\"ez-toc-section\" id=\"Measuring_Effectiveness\"><\/span><strong>Measuring Effectiveness<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">You can verify the performance improvements by reviewing the environment details and measuring access times before and after enabling the Theme Accelerator.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><strong>Platform<\/strong>&nbsp;<\/td><td>Microsoft Azure&nbsp;<\/td><\/tr><tr><td><strong>Region<\/strong>&nbsp;<\/td><td>East Japan&nbsp;<\/td><\/tr><tr><td><strong>Instance<\/strong>&nbsp;<\/td><td>Standard_B2ms&nbsp;<\/td><\/tr><tr><td><strong>CPU<\/strong>&nbsp;<\/td><td>Intel(R) Xeon(R) Platinum 8272CL @ 2.60GHz (2 vCPUs)&nbsp;<\/td><\/tr><tr><td><strong>Memory<\/strong>&nbsp;<\/td><td>8 GiB&nbsp;<\/td><\/tr><tr><td><strong>Disk<\/strong>&nbsp;<\/td><td>Standard HDD LRS, 30 GiB&nbsp;<\/td><\/tr><tr><td><strong>Operating System<\/strong>&nbsp;<\/td><td>AlmaLinux 8.8&nbsp;<\/td><\/tr><tr><td><strong>Middleware<\/strong>&nbsp;<\/td><td>Nginx 1.23.4&nbsp;<br>PHP 8.1.20&nbsp;<br>MariaDB 10.5&nbsp;<\/td><\/tr><tr><td><strong>WordPress<\/strong>&nbsp;<\/td><td>6.2.2&nbsp;<\/td><\/tr><tr><td><strong>General Theme<\/strong>&nbsp;<\/td><td>GeneratePress 3.3.0&nbsp;<\/td><\/tr><tr><td><strong>FSE Theme<\/strong>&nbsp;<\/td><td>x-t9 1.17.1&nbsp;<\/td><\/tr><tr><td><strong>Data<\/strong>&nbsp;<\/td><td>Copy of our corporate website&nbsp;<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Test Conditions and Results&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6761\u4ef6<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><strong>Test Method<\/strong>&nbsp;<\/td><td>4 threads, 1000 loop requests per URL&nbsp;<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><strong>Metric<\/strong>&nbsp;<\/td><td>Median response time&nbsp;<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><strong>Target URLs<\/strong>&nbsp;<\/td><td>- List Page: <a href=\"https:\/\/www.prime-strategy.co.jp\/en\/achievements\/page\/3\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/www.prime-strategy.co.jp\/en\/achievements\/page\/3\/<\/a> \u00a0<br>- Detail Page: <a href=\"https:\/\/www.prime-strategy.co.jp\/achievements\/yamaha_myujin\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/www.prime-strategy.co.jp\/achievements\/yamaha_myujin\/<\/a>\u00a0<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Measurement Results (Median Response Time)<\/strong>&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><strong>Condition<\/strong>&nbsp;<\/td><td><strong>List Page (General Theme)<\/strong>&nbsp;<\/td><td><strong>Detail Page (General Theme)<\/strong>&nbsp;<\/td><td><strong>List Page (FSE Theme)<\/strong>&nbsp;<\/td><td><strong>Detail Page (FSE Theme)<\/strong>&nbsp;<\/td><\/tr><tr><td><strong>WAF\/Cache Disabled<\/strong>&nbsp;<\/td><td>2142 ms (0% reduction)&nbsp;<\/td><td>1304 ms (0%)&nbsp;<\/td><td>1281 ms (0%)&nbsp;<\/td><td>1426 ms (0%)&nbsp;<\/td><\/tr><tr><td><strong>Header\/Footer Only<\/strong>&nbsp;<\/td><td>1204 ms (43.8% reduction)&nbsp;<\/td><td>1032 ms (20.9%)&nbsp;<\/td><td>1178 ms (8.0%)&nbsp;<\/td><td>1372 ms (3.8%)&nbsp;<\/td><\/tr><tr><td><strong>All Features Enabled<\/strong>&nbsp;<\/td><td>957 ms (55.3% reduction)&nbsp;<\/td><td>1184 ms (9.2%)&nbsp;<\/td><td>1141 ms (10.9%)&nbsp;<\/td><td>1287 ms&nbsp;&nbsp;<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Confirmed_Performance_Gains\"><\/span><strong>Confirmed Performance Gains<\/strong>&nbsp;<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Testing has shown that the <strong>Theme Accelerator<\/strong> reduces page access time by:&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>9.2% to 55.3%<\/strong> for general (non-FSE) themes&nbsp;<\/li>\n\n\n\n<li><strong>9.7% to 10.9%<\/strong> for FSE (Full Site Editing) themes&nbsp;<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Actual results may vary depending on your site\u2019s data, structure, and network environment.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_to_Clear_Cached_Data\"><\/span><strong>How to Clear Cached Data<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If you want to clear the Theme Accelerator's cached data, you can simply <strong>disable the setting in the WordPress admin panel<\/strong> under KUSANAGI \u2192 Other \u2192 Theme Accelerator, and then re-enable it.&nbsp;<br>This will delete all previously stored cache entries.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Final_Notes\"><\/span><strong>Final Notes<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The Theme Accelerator only caches data for certain hooks under specific conditions. Depending on how your theme is structured, <strong>you may see minimal impact<\/strong>.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">That said, this feature <strong>does not alter your site\u2019s data<\/strong>, so we strongly encourage you to <strong>update your KUSANAGI Plugin to the latest version and try enabling it<\/strong>.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you encounter any bugs or unexpected behavior, please report them to the <a href=\"https:\/\/www.facebook.com\/primestrategyen\" target=\"_blank\" rel=\"noreferrer noopener\">KUSANAGI User Group<\/a>.\u00a0<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Prime Strategy\u2019s KUSANAGI Plugin has been updated with a new feature: the Theme Accelerator.&nbsp; This functionality improves backend performance by caching frequently reused and rarely changed theme data\u2014including certain Full Site Editing (FSE) components\u2014allowing themes to load faster and respond more efficiently.&nbsp; The accelerator activates only under specific conditions and supports the creation and deletion of cache data as needed. Performance testing has shown a reduction in page access time ... <a title=\"Introducing the \u201cTheme Accelerator\u201d in the KUSANAGI Plugin\" class=\"read-more\" href=\"https:\/\/kusanagi.tokyo\/column\/en\/archives\/column_10647\" aria-label=\"Read more about Introducing the \u201cTheme Accelerator\u201d in the KUSANAGI Plugin\">Read more<\/a><\/p>\n","protected":false},"author":31,"featured_media":10681,"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-10647","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"],"_links":{"self":[{"href":"https:\/\/kusanagi.tokyo\/column\/en\/wp-json\/wp\/v2\/posts\/10647","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\/31"}],"replies":[{"embeddable":true,"href":"https:\/\/kusanagi.tokyo\/column\/en\/wp-json\/wp\/v2\/comments?post=10647"}],"version-history":[{"count":7,"href":"https:\/\/kusanagi.tokyo\/column\/en\/wp-json\/wp\/v2\/posts\/10647\/revisions"}],"predecessor-version":[{"id":10694,"href":"https:\/\/kusanagi.tokyo\/column\/en\/wp-json\/wp\/v2\/posts\/10647\/revisions\/10694"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kusanagi.tokyo\/column\/en\/wp-json\/wp\/v2\/media\/10681"}],"wp:attachment":[{"href":"https:\/\/kusanagi.tokyo\/column\/en\/wp-json\/wp\/v2\/media?parent=10647"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kusanagi.tokyo\/column\/en\/wp-json\/wp\/v2\/categories?post=10647"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kusanagi.tokyo\/column\/en\/wp-json\/wp\/v2\/tags?post=10647"},{"taxonomy":"series","embeddable":true,"href":"https:\/\/kusanagi.tokyo\/column\/en\/wp-json\/wp\/v2\/series?post=10647"},{"taxonomy":"journey","embeddable":true,"href":"https:\/\/kusanagi.tokyo\/column\/en\/wp-json\/wp\/v2\/journey?post=10647"},{"taxonomy":"product","embeddable":true,"href":"https:\/\/kusanagi.tokyo\/column\/en\/wp-json\/wp\/v2\/product?post=10647"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}