Skip to content

Commit 62166fe

Browse files
committed
Remove redundant document purge
1 parent b29feb2 commit 62166fe

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

src/Database/Database.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1583,7 +1583,6 @@ public function createAttribute(string $collection, string $id, string $type, in
15831583
}
15841584

15851585
$this->purgeCachedCollection($collection->getId());
1586-
$this->purgeCachedDocument(self::METADATA, $collection->getId());
15871586

15881587
$this->trigger(self::EVENT_ATTRIBUTE_CREATE, $attribute);
15891588

@@ -1691,7 +1690,6 @@ public function createAttributes(string $collection, array $attributes): bool
16911690
}
16921691

16931692
$this->purgeCachedCollection($collection->getId());
1694-
$this->purgeCachedDocument(self::METADATA, $collection->getId());
16951693

16961694
$this->trigger(self::EVENT_ATTRIBUTE_CREATE, $attributeDocuments);
16971695

0 commit comments

Comments
 (0)