Browse Source

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>
pull/8995/head
Roeland Jago Douma 8 years ago
parent
commit
6868da9958
No known key found for this signature in database GPG Key ID: F941078878347C0C
  1. 2
      lib/private/Files/Filesystem.php

2
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);
}
/**

Loading…
Cancel
Save