OnCacheUpdate
Последнее обновление Jan 28th, 2020 | История страницы | Улучшить эту страницу | Сообщить о проблеме
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
$194 per month—let's make that $500!
Learn moreСобытие: OnCacheUpdate¶
Событие запускается после очистки кэша сайта, в modCacheManager::clean() и modCacheManager::refresh().
- Служба: 4 - Cache Service Events
- Group: System
Параметры события¶
| Имя | Описание |
|---|---|
| results | Результаты очистки. |
| paths | Массив путей, которые должны были быть очищены. |
| options | Массив опций передается в метод очистки кэша. |
Пример¶
Такой плагин выведет на экран и запишет в "Журнал ошибок" результат выполнения:
$eventName = $modx->event->name;
switch($eventName) {
case 'OnCacheUpdate':
$modx->log(modX::LOG_LEVEL_ERROR, print_r($results, true));
break;
}
Смотри также¶
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
$194 per month—let's make that $500!
Learn more










