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>
This commit is contained in:
Roeland Jago Douma 2020-05-12 14:52:55 +02:00
parent 703d716a32
commit 4a2a6b65f3
No known key found for this signature in database
GPG Key ID: F941078878347C0C
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}