diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2020-05-12 14:52:55 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2020-05-12 19:37:25 +0200 |
commit | 4a2a6b65f33e35f1629af8fb1709c1c1a8ccacd2 (patch) | |
tree | afbd7e3f0b182c4c6d3d72f5ce913c424170291e /core/Controller/AvatarController.php | |
parent | 703d716a32e08d0bc594ba5572452044c5fb3022 (diff) | |
download | nextcloud-server-4a2a6b65f33e35f1629af8fb1709c1c1a8ccacd2.tar.gz nextcloud-server-4a2a6b65f33e35f1629af8fb1709c1c1a8ccacd2.zip |
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>
Diffstat (limited to 'core/Controller/AvatarController.php')
-rw-r--r-- | core/Controller/AvatarController.php | 4 |
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; } |