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
21
Supports
K5 K4 K3
Implements
More