diff --git a/packages/vitec/Classes/Controller/Backend/SsrController.php b/packages/vitec/Classes/Controller/Backend/SsrController.php index af352bb..a4bc4e3 100644 --- a/packages/vitec/Classes/Controller/Backend/SsrController.php +++ b/packages/vitec/Classes/Controller/Backend/SsrController.php @@ -88,12 +88,12 @@ final class SsrController } if ($paths === []) { - $this->flash('Keine Pfade angegeben.', 'Purge', false); + $this->flash('No paths given.', 'Purge', false); } else { $result = $this->purgeService->purge($paths, 'module:' . $user); $this->flash( sprintf('HTTP %d — %s', $result['httpCode'], $result['message']), - $result['success'] ? 'Purge erfolgreich' : 'Purge fehlgeschlagen', + $result['success'] ? 'Purge successful' : 'Purge failed', $result['success'] ); } diff --git a/packages/vitec/Classes/Widgets/SsrStatsWidget.php b/packages/vitec/Classes/Widgets/SsrStatsWidget.php index 3e54ba0..3957fa0 100644 --- a/packages/vitec/Classes/Widgets/SsrStatsWidget.php +++ b/packages/vitec/Classes/Widgets/SsrStatsWidget.php @@ -10,8 +10,8 @@ use TYPO3\CMS\Dashboard\Widgets\WidgetInterface; /** * Dashboard tile: purge and health statistics from the two protocol - * tables. History depth = what vitec:ssr-health sampling (scheduler) - * and the purge log hold (14 days). + * tables. History depth = what vitec:ssr-health sampling (cron, every + * 5 minutes) and the purge log hold (14 days). */ final class SsrStatsWidget implements WidgetInterface { @@ -38,15 +38,15 @@ final class SsrStatsWidget implements WidgetInterface $maxCache = $this->scalar('SELECT MAX(cache_mb) FROM tx_vitec_ssrhealthlog WHERE crdate > ' . $d7); $rows = [ - ['Purges (24 h / 7 Tage)', $purges24h . ' / ' . $purges7d], - ['davon Komplett-Purges (7 T.)', (string)$full7d], - ['Fehlgeschlagene Purges (7 T.)', $failed7d > 0 + ['Purges (24 h / 7 days)', $purges24h . ' / ' . $purges7d], + ['of which full purges (7 d)', (string)$full7d], + ['Failed purges (7 d)', $failed7d > 0 ? '' . $failed7d . '' : '0'], - ['Verfügbarkeit (24 h)', htmlspecialchars($uptime) - . ' (' . $ok24h . '/' . $samples24h . ' Messungen)'], - ['∅ Antwortzeit (24 h)', $avgMs !== null ? $avgMs . ' ms' : '-'], - ['Max. Cache-Größe (7 T.)', $maxCache !== null ? $maxCache . ' MB' : '-'], + ['Availability (24 h)', htmlspecialchars($uptime) + . ' (' . $ok24h . '/' . $samples24h . ' samples)'], + ['Avg. response time (24 h)', $avgMs !== null ? $avgMs . ' ms' : '-'], + ['Max. cache size (7 d)', $maxCache !== null ? $maxCache . ' MB' : '-'], ]; $html = '
Noch keine Messwerte: Scheduler-Task für vitec:ssr-health einrichten (z. B. alle 5 Minuten).
No samples yet: the cron job for vitec:ssr-health fills this every 5 minutes.
| ' . htmlspecialchars($label) . ' | ' . $value . ' |
|---|
Schalter: Site Management › Settings › VITEC. Modul "VITEC SSR" für Purge & Protokoll.
'; + $html .= 'Switch: Site Management › Settings › VITEC. Module "VITEC SSR" for purge & protocol.
'; return $html; } @@ -112,6 +112,6 @@ final class SsrStatusWidget implements WidgetInterface private function fmtDate(string $iso): string { $ts = strtotime($iso); - return $ts ? date('d.m.Y H:i', $ts) : '?'; + return $ts ? date('Y-m-d H:i', $ts) : '?'; } } diff --git a/packages/vitec/Configuration/Services.yaml b/packages/vitec/Configuration/Services.yaml index 9131c80..492c8b9 100644 --- a/packages/vitec/Configuration/Services.yaml +++ b/packages/vitec/Configuration/Services.yaml @@ -35,8 +35,8 @@ services: - name: dashboard.widget identifier: vitecSsrStatus groupNames: systemInfo - title: 'VITEC: SSR / VPS-Status' - description: 'Live-Zustand des SSR-Servers (Release, Cache, Erreichbarkeit) und der Auslieferungs-Schalter' + title: 'VITEC: SSR / VPS status' + description: 'Live state of the SSR server (release, cache, reachability) and the delivery switch' iconIdentifier: 'content-widget-text' height: 'medium' width: 'medium' @@ -46,8 +46,8 @@ services: - name: dashboard.widget identifier: vitecSsrStats groupNames: systemInfo - title: 'VITEC: SSR-Statistik' - description: 'Purge-Protokoll und Verfügbarkeit des SSR-Servers (14 Tage Historie)' + title: 'VITEC: SSR statistics' + description: 'Purge protocol and availability of the SSR server (14 days of history)' iconIdentifier: 'content-widget-number' height: 'medium' width: 'medium' diff --git a/packages/vitec/Resources/Private/Templates/Ssr/Index.html b/packages/vitec/Resources/Private/Templates/Ssr/Index.html index a4e559d..30afc17 100644 --- a/packages/vitec/Resources/Private/Templates/Ssr/Index.html +++ b/packages/vitec/Resources/Private/Templates/Ssr/Index.html @@ -1,75 +1,75 @@ -| SSR-Auslieferung | +SSR delivery |
Umschalten: Site Management › Settings › VITEC + Toggle: Site Management › Settings › VITEC |
|---|---|---|
| SSR-Server | +SSR server |
+ running {health.responseMs} ms Release {health.release.release} - (Commit {health.release.commit}) - Cache: {health.cachedPages} Seiten / {health.cacheMB} MB + (commit {health.release.commit}) + Cache: {health.cachedPages} pages / {health.cacheMB} MB |
| Purge-Konfiguration | +Purge configuration |
|
| Zeit | Auslöser | Pfade | Ergebnis | Dauer |
|---|---|---|---|---|
| Time | Trigger | Paths | Result | Duration |
| {row.trigger_source} | {row.paths} |
@@ -84,13 +84,13 @@ |
vitec:ssr-health)vitec:ssr-health, every 5 minutes)| Zeit | Status | Release | Cache | Antwortzeit | ||
|---|---|---|---|---|---|---|
| Time | Status | Release | Cache | Response time | ||
|
|
{row.release_id} | -{row.cached_pages} Seiten / {row.cache_mb} MB | +{row.cached_pages} pages / {row.cache_mb} MB | {row.response_ms} ms |