Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlib/Controller/MessagesController.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/Controller/MessagesController.php b/lib/Controller/MessagesController.php
index c366fcd34..b46b4e10d 100755
--- a/lib/Controller/MessagesController.php
+++ b/lib/Controller/MessagesController.php
@@ -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;
}
/**