clearRolesCache(); } public function afterUpdateEntity(Entity $entity, $data) { parent::afterUpdateEntity($entity, $data); $this->clearRolesCache(); } protected function clearRolesCache() { $this->fileManager->removeInDir('data/cache/application/acl'); $this->fileManager->removeInDir('data/cache/application/aclMap'); $this->dataManager->updateCacheTimestamp(); } }