This commit is contained in:
fogelito 2024-11-07 17:35:03 +02:00
parent cd0d1d94db
commit fb40970eba

View file

@ -197,6 +197,7 @@ class Databases extends Action
throw $e;
} finally {
$this->trigger($database, $collection, $attribute, $project, $projectId, $events);
if ($type === Database::VAR_RELATIONSHIP && $options['twoWay']) {
$dbForProject->purgeCachedDocument('database_' . $database->getInternalId(), $relatedCollection->getId());
}