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 <roeland@famdouma.nl>
pull/20943/head
Roeland Jago Douma 6 years ago
parent 703d716a32
commit 4a2a6b65f3
No known key found for this signature in database
GPG Key ID: F941078878347C0C
  1. 4
      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;
}

Loading…
Cancel
Save