1
0
Fork 0
mirror of synced 2024-07-04 06:00:53 +12:00

Fix cache invalidation when deleting database

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

View file

@ -668,7 +668,8 @@ App::delete('/v1/databases/:databaseId')
throw new Exception(Exception::GENERAL_SERVER_ERROR, 'Failed to remove collection from DB');
}
$dbForProject->deleteCachedCollection('databases' . $database->getInternalId());
$dbForProject->deleteCachedDocument('databases', $database->getId());
$dbForProject->deleteCachedCollection('databases_' . $database->getInternalId());
$deletes
->setType(DELETE_TYPE_DOCUMENT)