mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
Clear related collection cache
This commit is contained in:
parent
9468c238de
commit
a7a3d85bcb
1 changed files with 1 additions and 0 deletions
|
|
@ -119,6 +119,7 @@ class DatabaseV1 extends Worker
|
||||||
if ($options['twoWay']) {
|
if ($options['twoWay']) {
|
||||||
$relatedAttribute = $dbForProject->getDocument('attributes', $database->getInternalId() . '_' . $relatedCollection->getInternalId() . '_' . $options['twoWayKey']);
|
$relatedAttribute = $dbForProject->getDocument('attributes', $database->getInternalId() . '_' . $relatedCollection->getInternalId() . '_' . $options['twoWayKey']);
|
||||||
$dbForProject->updateDocument('attributes', $relatedAttribute->getId(), $relatedAttribute->setAttribute('status', 'available'));
|
$dbForProject->updateDocument('attributes', $relatedAttribute->getId(), $relatedAttribute->setAttribute('status', 'available'));
|
||||||
|
$dbForProject->deleteCachedDocument('database_' . $database->getInternalId(), $relatedCollection->getId());
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue