Page context menu: Purge from SSR cache

SsrPurgeItemProvider adds the item behind Clear cache for real pages (doktype < 199) whenever the purge endpoint is configured. The callback module posts the page uid to the new vitec_ssr_purge_page ajax route, which resolves the page path through the site router, purges it via SsrPurgeService (trigger contextmenu:username, logged as usual) and reports back as a toast notification.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
orascheandClaude Fable 5 committed 2026-11-09 21:10:30 +01:00
1 parent fa63871da7
commit 5b524bfce9
4 files changed
+132

No files matched your search

@@ -27,4 +27,10 @@ return [
'path' => '/vitec/product/field/save',
'target' => ProductTextImportController::class . '::fieldSave',
],
// Context menu "Purge from SSR cache" (SsrPurgeItemProvider +
// Resources/Public/Javascript/ssr-context-menu.js).
'vitec_ssr_purge_page' => [
'path' => '/vitec/ssr/purge-page',
'target' => \Evomedien\Vitec\Controller\Backend\SsrController::class . '::purgePage',
],
];