| @@ -53,10 +53,20 @@ | ||
| 53 | 53 | // Out-of-band refresh of the Set-Cookie probe. Health::checks() |
| 54 | 54 | // only ever reads the cached verdict, so the HTTP round-trip |
| 55 | 55 | // happens here instead of inside a request the user waits on. |
| 56 | 56 | add_action( \XSpeed\Cookie_Inspector::CRON_HOOK, array( $this, 'refresh_cookie_probe' ) ); |
| 57 | + | |
| 58 | + // Same pattern for the edge-mode probe: the page it requests is | |
| 59 | + // answered here, and the two round-trips run from cron. | |
| 60 | + \XSpeed\Edge_Mode_Probe::boot(); | |
| 61 | + add_action( \XSpeed\Edge_Mode_Probe::CRON_HOOK, array( $this, 'refresh_edge_mode_probe' ) ); | |
| 57 | 62 | } |
| 58 | 63 | |
| 64 | + /** Cron callback: ask the edge whether it obeys "do not store". */ | |
| 65 | + public function refresh_edge_mode_probe(): void { | |
| 66 | + \XSpeed\Edge_Mode_Probe::run(); | |
| 67 | + } | |
| 68 | + | |
| 59 | 69 | /** Cron callback: perform the real (blocking) probe off-request. */ |
| 60 | 70 | public function refresh_cookie_probe(): void { |
| 61 | 71 | \XSpeed\Cookie_Inspector::probe( true ); |
| 62 | 72 | } |
| @@ -249,9 +259,9 @@ | ||
| 249 | 259 | public function ui_metadata(): array { |
| 250 | 260 | return array( |
| 251 | 261 | 'label' => __( 'Health', 'xspeed' ), |
| 252 | 262 | 'icon' => 'HeartPulse', |
| 253 | - 'description' => __( 'Diagnostics, hit ratio, and recent cache activity.', 'xspeed' ), | |
| 263 | + 'description' => __( 'Checks for problems and shows how often visitors get cached pages.', 'xspeed' ), | |
| 254 | 264 | // Health is the single host page for all Insights (FBS-83633): |
| 255 | 265 | // a Recommendations action card + Cache / Visitors / PageSpeed |
| 256 | 266 | // tabs. HealthPanel renders the Free cache diagnostics (the old |
| 257 | 267 | // HealthCard) as the Cache tab and hosts the Pro insight panels |
| @@ -256,8 +266,9 @@ | ||
| 256 | 266 | // tabs. HealthPanel renders the Free cache diagnostics (the old |
| 257 | 267 | // HealthCard) as the Cache tab and hosts the Pro insight panels |
| 258 | 268 | // as the other tabs via ProSlot. |
| 259 | 269 | 'custom_panel' => 'HealthPanel', |
| 270 | + 'group' => 'insights', | |
| 260 | 271 | ); |
| 261 | 272 | } |
| 262 | 273 | |
| 263 | 274 | // No settings — explicit empty so Module::rest_routes() doesn't |