OnBeforeCacheUpdate
Last updated Sep 13th, 2020 | Page history | Improve this page | Report an issue
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$301 per month—let's make that $500!
Learn moreEvent: 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¶
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$301 per month—let's make that $500!
Learn more