Jump to main content Jump to doc navigation

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!"

See Also