1
0
Fork 0
mirror of synced 2024-06-29 11:40:45 +12:00

Clear external cache when resources are deleted

This commit is contained in:
kodumbeats 2021-11-01 20:48:38 -04:00
parent 7624f97f0b
commit dd5c873b99

View file

@ -644,6 +644,8 @@ App::delete('/v1/database/collections/:collectionId')
throw new Exception('Failed to remove collection from DB', 500);
}
$dbForExternal->deleteCachedCollection($collection->getId());
$deletes
->setParam('type', DELETE_TYPE_DOCUMENT)
->setParam('document', $collection)
@ -2005,6 +2007,7 @@ App::delete('/v1/database/collections/:collectionId/documents/:documentId')
}
$dbForExternal->deleteDocument($collectionId, $documentId);
$dbForExternal->deleteCachedDocument($collectionId, $documentId);
$usage
->setParam('database.documents.delete', 1)