Reference

Guide

$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($time): bool

Parameters

Name Type Default Description
$time getkirby.com/docs/reference/objects/asset/alt

Return type

bool

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 ?>

Source code

kirby/src/Cms/Site.php#L703