All Get Requests are cachable and will be cached by default. To determine if the response is cached you can use the following method:
$connector = new DocuWareConnector();
$response = $connector->send(new GetDocumentRequest($fileCabinetId, $documentId));
$response->isCached(); // false
// Next time the request is sent
$response = $connector->send(new GetDocumentRequest($fileCabinetId, $documentId));
$response->isCached(); // true
To invalidate the cache for a specific request you can use the following method:
$connector = new DocuWareConnector();
$request = new GetDocumentRequest($fileCabinetId, $documentId);
$request->invalidateCache();
$response = $connector->send($request);
To temporarily disable caching for a specific request you can use the following method:
$connector = new DocuWareConnector();
$request = new GetDocumentRequest($fileCabinetId, $documentId);
$request->disableCaching();
$response = $connector->send($request);