/** * Sync component */ public final function sync() { if (!$this->isSyncable()) { return; } ModSync\Logger::notice('Syncing: ' . $this->getName()); $this->beforeSyncHook(); $this->_createNamespace(); $dir = self::getCoreComponentsDir() . DIRECTORY_SEPARATOR . $this->getName(); foreach ($this->_elements as $element) { $this->_syncFolder($dir . DIRECTORY_SEPARATOR . $element); } $this->afterSyncHook(); }
private function _doClearCache() { ModSync\Logger::notice('Clearing Cache'); self::getModX()->getCacheManager()->refresh(); }