PluginProbe
xSpeed Cache: AI-Powered Performance Hub with MCP, Caching & CDN / 1.4.2
xSpeed Cache: AI-Powered Performance Hub with MCP, Caching & CDN v1.4.2
1.4.2 1.4.1 1.4.0 1.3.7 1.3.6 1.3.5 1.3.4 1.3.3 1.3.2 1.3.1 1.3.0 1.2.4 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.1.1 All 36 releases
← All changes | includes/modules/Score/ScoreModule.php +7 -0 1.4.0 → 1.4.2 View file →
@@ -296,8 +296,9 @@
296 296 'status' => 'running',
297 297 'scan_id' => $polled['scan_id'],
298 298 'step' => $polled['step'],
299 299 'latest' => Scan::latest(),
300 + 'stored' => Scan::stored_state(),
300 301 'visibility' => Scan::visibility(),
301 302 'private_supported' => Scan::private_supported(),
302 303 )
303 304 );
@@ -305,8 +306,9 @@
305 306 return rest_ensure_response(
306 307 array(
307 308 'status' => 'complete',
308 309 'latest' => $polled,
310 + 'stored' => 'ok',
309 311 'visibility' => Scan::visibility(),
310 312 'private_supported' => Scan::private_supported(),
311 313 )
312 314 );
@@ -315,8 +317,9 @@
315 317 return rest_ensure_response(
316 318 array(
317 319 'status' => 'idle',
318 320 'latest' => Scan::latest(),
321 + 'stored' => Scan::stored_state(),
319 322 'visibility' => Scan::visibility(),
320 323 'private_supported' => Scan::private_supported(),
321 324 )
322 325 );
@@ -925,8 +928,12 @@
925 928 return;
926 929 }
927 930
928 931 $latest = Scan::latest();
932 + if ( null === $latest && 'unreadable' === Scan::stored_state() ) {
933 + \WP_CLI::log( 'The last scan report could not be read back from the database and was discarded. Run `wp xspeed scan run --wait` again.' );
934 + return;
935 + }
929 936 if ( null === $latest ) {
930 937 \WP_CLI::log( 'No scan yet. Run `wp xspeed scan run --wait`.' );
931 938 return;
932 939 }