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:
parent
703d716a32
commit
4a2a6b65f3
|
@ -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…
Reference in New Issue