$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 |
|---|---|---|
| $timerequired | int |
no default value |
Return type
bool
This method modifies the existing $site object it is applied to and returns it again.
Parent class
This is mainly used to auto-update the cache.
Examples
<?php if ($site->wasModifiedAfter(strtotime('2016-01-01' ))): ?>
The site was modified after 2016/01/01.
<?php endif ?>