Skip to content

Kirby 4.1.2

$site->wasModifiedAfter()

Checks if any content of the site has been modified after the given unix timestamp This is mainly used to auto-update the cache

$site->wasModifiedAfter(int $time): bool

Parameters

Name Type Default
$time * int

Return type

bool

Parent class

Kirby\Cms\Site

This is mainly used to auto-update the cache.

Example

<?php if($site->wasModifiedAfter(strtotime('2016-01-01' ))): ?>
The site was modified after 2016/01/01.
<?php endif ?>