event->name === 'OnSiteRefresh') { if (!$modx->loadClass('pThumbCacheCleaner', MODX_CORE_PATH . 'components/phpthumbof/model/', true, true)) { $modx->log(modX::LOG_LEVEL_ERROR, '[pThumb] Could not load pThumbCacheCleaner class.'); return; } static $pt_settings = array(); $pThumb = new pThumbCacheCleaner($modx, $pt_settings, array(), true); $pThumb->cleanCache(); }