OnBeforeCacheUpdate
Last updated Sep 13th, 2020 | Page history | Improve this page | Report an issue
Event: OnBeforeCacheUpdate¶
Fired before the entire site cache is cleared.
- Service: 4 - Cache Service Events
- Group: None
Event Parameters¶
None.
Example¶
<?php
$eventName = $modx->event->name;
switch($eventName) {
case 'OnBeforeCacheUpdate':
$modx->log(modX::LOG_LEVEL_ERROR, "Let's start!");
break;
}
Now refresh the cache and you will see "Let's start!"