refresh cache button plugin : add last cache update date and time on button title

This commit is contained in:
isUnknown 2025-09-24 09:13:04 +02:00
parent a1f0701630
commit b1f7854510
5 changed files with 37 additions and 17 deletions

View file

@ -10,7 +10,8 @@ Kirby::plugin('adrienpayet/refresh-cache-button', [
'component' => 'refresh-cache-button',
'props' => [
'pageUri' => $page->uri(),
'pageStatus' => $page->status()
'pageStatus' => $page->status(),
'lastCacheUpdate' => $page->lastCacheUpdate()->value(),
]
];
}