config = $config;
$this->manager = $manager;
}
public function getName(): string {
return 'Clear access cache of projects';
}
private function shouldRun(): bool {
$versionFromBeforeUpdate = $this->config->getSystemValueString('version', '0.0.0.0');
return version_compare($versionFromBeforeUpdate, '17.0.0.3', '<=');
}
public function run(IOutput $output): void {
if ($this->shouldRun()) {
$this->manager->invalidateAccessCacheForAllCollections();
}
}
}
-itip-broker
blob: fc297f7c08746bc7b3e20cd46a8934ee73e2c41d (
plain)