aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Filesystem.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-03-26 19:47:38 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2018-04-04 12:44:52 +0200
commit6868da9958f25bbf0212d1cd2d5d918152e50d78 (patch)
tree064115d01e9b8252ad8f62a211690ab9475f219a /lib/private/Files/Filesystem.php
parentdc222aa3a50c32fb1aa9801ad7fedf98325477e8 (diff)
downloadnextcloud-server-6868da9958f25bbf0212d1cd2d5d918152e50d78.tar.gz
nextcloud-server-6868da9958f25bbf0212d1cd2d5d918152e50d78.zip
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 <roeland@famdouma.nl>
Diffstat (limited to 'lib/private/Files/Filesystem.php')
-rw-r--r--lib/private/Files/Filesystem.php2
1 files changed, 1 insertions, 1 deletions
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);
}
/**