From 4a2a6b65f33e35f1629af8fb1709c1c1a8ccacd2 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Tue, 12 May 2020 14:52:55 +0200 Subject: Cache the avatar for a day I noticed that on larger systems esp when using talk the avatars get revalidated like crazy. Because people keep the tab open etc. You can do with a slightly outdated avatar! Signed-off-by: Roeland Jago Douma --- core/Controller/AvatarController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/Controller/AvatarController.php b/core/Controller/AvatarController.php index ac0f9535dca..dc6febc467f 100644 --- a/core/Controller/AvatarController.php +++ b/core/Controller/AvatarController.php @@ -153,8 +153,8 @@ class AvatarController extends Controller { return new JSONResponse([], Http::STATUS_NOT_FOUND); } - // Cache for 30 minutes - $response->cacheFor(1800); + // Cache for 1 day + $response->cacheFor(60*60*24); return $response; } -- cgit v1.2.3