mirror of
https://github.com/appwrite/appwrite
synced 2026-05-22 00:18:25 +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']) {
|
||||
$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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue