From 6868da9958f25bbf0212d1cd2d5d918152e50d78 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Mon, 26 Mar 2018 19:47:38 +0200 Subject: [PATCH] Make normalized cache path larger On larger instances with a large number of shares this can make a real impact as the default 512 entries are easily filled. Making this contain max 2048 entries has basically no effect on smaller installations (as they probably never hit the 512 now). But makes sure we don't evict entries in the larger case. Signed-off-by: Roeland Jago Douma --- lib/private/Files/Filesystem.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/Files/Filesystem.php b/lib/private/Files/Filesystem.php index 95703eab925..b9f0813c84a 100644 --- a/lib/private/Files/Filesystem.php +++ b/lib/private/Files/Filesystem.php @@ -794,7 +794,7 @@ class Filesystem { */ public static function normalizePath($path, $stripTrailingSlash = true, $isAbsolutePath = false, $keepUnicode = false) { if (is_null(self::$normalizedPathCache)) { - self::$normalizedPathCache = new CappedMemoryCache(); + self::$normalizedPathCache = new CappedMemoryCache(2048); } /**