This plugin is marked as archived and no longer actively maintained
Bruno Meilick Bruno Meilick

Lapse

Cache any data until the set expiration time

Manual

Download

… and extract the folder to site/plugins/lapse

Composer

Git Submodule

Sponsor
$keyFromObjects = [$page, $page->files()];
$data = lapse(
    $keyFromObjects, // will check modified
    function () use ($page) {
        return $page->files()->toArray(
          fn ($file) => $file->niceSize()
        );
    }
); // expires when any timestamp changes
Version
5.0.0
License
MIT
Stars
22
Implements
Kirby support
  • Kirby 5
  • Kirby 4
  • Kirby 3
More