mirror of
https://github.com/nextcloud/server.git
synced 2026-04-21 14:23:17 -04:00
Merge pull request #20943 from nextcloud/enh/avatar-cache-1day
Cache the avatar for a day
This commit is contained in:
commit
dec30fcbc7
1 changed files with 2 additions and 2 deletions
|
|
@ -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 a new issue