From 5e4a1a3f3127c62be4cd62f49e9af14e43d4481b Mon Sep 17 00:00:00 2001 From: Fredrik Rombach Ekelund Date: Wed, 2 Oct 2024 15:13:13 +0200 Subject: [PATCH] Server Settings Enhancements: Enable feature flag, update doc link (#95087) * Enable feature flag, update doc link * Include a cache_type prop for `Clear all caches` button --- client/components/inline-support-link/context-links.js | 2 +- client/hosting/server-settings/components/cache-card/index.tsx | 1 + config/production.json | 2 +- config/stage.json | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/client/components/inline-support-link/context-links.js b/client/components/inline-support-link/context-links.js index 7fd1103387834..0d7a16cab35dd 100644 --- a/client/components/inline-support-link/context-links.js +++ b/client/components/inline-support-link/context-links.js @@ -120,7 +120,7 @@ const contextLinks = { blog_id: DEVELOPER_WORDPRESS_BLOG_ID, }, 'hosting-defensive-mode': { - link: 'https://developer.wordpress.com/docs/site-performance/global-edge-cache/', + link: 'https://developer.wordpress.com/docs/site-performance/defensive-mode/', post_id: 99415, blog_id: DEVELOPER_WORDPRESS_BLOG_ID, }, diff --git a/client/hosting/server-settings/components/cache-card/index.tsx b/client/hosting/server-settings/components/cache-card/index.tsx index bc2e75fce1f23..74aa624f0bbe9 100644 --- a/client/hosting/server-settings/components/cache-card/index.tsx +++ b/client/hosting/server-settings/components/cache-card/index.tsx @@ -78,6 +78,7 @@ export default function CacheCard( { disabled }: CacheCardProps ) { const handleClearAllCache = () => { recordTracksEvent( 'calypso_hosting_configuration_clear_wordpress_cache', { site_id: siteId, + cache_type: 'all', } ); if ( isEdgeCacheActive && ! isEdgeCacheClearRateLimited ) { diff --git a/config/production.json b/config/production.json index d400845ab95a1..f86ff8ea4e3c5 100644 --- a/config/production.json +++ b/config/production.json @@ -56,7 +56,7 @@ "google-my-business": true, "help": true, "help/gpt-response": true, - "hosting-server-settings-enhancements": false, + "hosting-server-settings-enhancements": true, "i18n/empathy-mode": false, "i18n/translation-scanner": true, "importer/site-backups": true, diff --git a/config/stage.json b/config/stage.json index 11e45d7fcd50a..9bf32ed99d863 100644 --- a/config/stage.json +++ b/config/stage.json @@ -55,7 +55,7 @@ "google-my-business": true, "help": true, "help/gpt-response": true, - "hosting-server-settings-enhancements": false, + "hosting-server-settings-enhancements": true, "i18n/empathy-mode": true, "importer/site-backups": true, "importer/unified": true,