Merge pull request #20943 from nextcloud/enh/avatar-cache-1day

Cache the avatar for a day
This commit is contained in:
Morris Jobke 2020-05-12 21:03:29 +02:00 committed by GitHub
commit dec30fcbc7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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