| @@ -53,8 +53,18 @@ | ||
| 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' ) ); | |
| 62 | + } | |
| 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(); | |
| 57 | 67 | } |
| 58 | 68 | |
| 59 | 69 | /** Cron callback: perform the real (blocking) probe off-request. */ |
| 60 | 70 | public function refresh_cookie_probe(): void { |