Clear related collection cache

This commit is contained in:
Jake Barnby 2023-03-30 13:24:44 +13:00
parent 9468c238de
commit a7a3d85bcb
No known key found for this signature in database
GPG key ID: C437A8CC85B96E9C

View file

@ -119,6 +119,7 @@ class DatabaseV1 extends Worker
if ($options['twoWay']) {
$relatedAttribute = $dbForProject->getDocument('attributes', $database->getInternalId() . '_' . $relatedCollection->getInternalId() . '_' . $options['twoWayKey']);
$dbForProject->updateDocument('attributes', $relatedAttribute->getId(), $relatedAttribute->setAttribute('status', 'available'));
$dbForProject->deleteCachedDocument('database_' . $database->getInternalId(), $relatedCollection->getId());
}
break;
default: