Skip to content
Snippets Groups Projects
Unverified Commit b6e0ac41 authored by Christoph Wurst's avatar Christoph Wurst Committed by GitHub
Browse files

Merge pull request #4159 from nextcloud/enhancement/add-caching-to-getBody

Adds caching for MessageController's getBody function
parents 1ee61dd8 3dc7a522
No related branches found
No related tags found
No related merge requests found
......@@ -247,7 +247,12 @@ class MessagesController extends Controller {
$json['mailboxId'] = $mailbox->getId();
$json['databaseId'] = $message->getId();
return new JSONResponse($json);
$response = new JSONResponse($json);
// Enable caching
$response->cacheFor(60 * 60);
return $response;
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment