aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2020-05-12 21:03:29 +0200
committerGitHub <noreply@github.com>2020-05-12 21:03:29 +0200
commitdec30fcbc7a9312fc777de0ab2b4cdf51d88f255 (patch)
treeafbd7e3f0b182c4c6d3d72f5ce913c424170291e
parent703d716a32e08d0bc594ba5572452044c5fb3022 (diff)
parent4a2a6b65f33e35f1629af8fb1709c1c1a8ccacd2 (diff)
downloadnextcloud-server-dec30fcbc7a9312fc777de0ab2b4cdf51d88f255.tar.gz
nextcloud-server-dec30fcbc7a9312fc777de0ab2b4cdf51d88f255.zip
Merge pull request #20943 from nextcloud/enh/avatar-cache-1day
Cache the avatar for a day
-rw-r--r--core/Controller/AvatarController.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/Controller/AvatarController.php b/core/Controller/AvatarController.php
index ac0f9535dca..dc6febc467f 100644
--- a/core/Controller/AvatarController.php
+++ b/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;
}