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>
This commit is contained in:
parent
dc222aa3a5
commit
6868da9958
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue