1
0
Fork 0
mirror of synced 2024-10-02 10:16:27 +13:00

Fix cache invalidation when updating attributes

This commit is contained in:
Jake Barnby 2023-04-03 15:43:14 +12:00
parent dd2f980539
commit 3cfbdf07b7
No known key found for this signature in database
GPG key ID: C437A8CC85B96E9C

View file

@ -348,7 +348,7 @@ function updateAttribute(
}
$dbForProject->updateDocument('attributes', $db->getInternalId() . '_' . $collection->getInternalId() . '_' . $key, $attribute);
$dbForProject->deleteCachedDocument('database_' . $db->getInternalId(), $collectionId);
$dbForProject->deleteCachedDocument('database_' . $db->getInternalId(), $collection->getId());
$events
->setContext('collection', $collection)