Fix cache invalidation when deleting database
This commit is contained in:
parent
3cfbdf07b7
commit
3d95f7e129
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue