aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorprovokateurin <kate@provokateurin.de>2025-05-27 15:18:25 +0200
committerprovokateurin <kate@provokateurin.de>2025-07-08 11:38:59 +0200
commit0eae0e3c069dcd26ffec93191baa7fe51a96768f (patch)
tree53d6990c15823aa8252479efb31daf78d03ac9c7
parent689a853dc6d6b2e81c24b37f71c05db28f8ae8c9 (diff)
downloadnextcloud-server-0eae0e3c069dcd26ffec93191baa7fe51a96768f.tar.gz
nextcloud-server-0eae0e3c069dcd26ffec93191baa7fe51a96768f.zip
perf(base): Stop setting up the FS for every basic auth request
Signed-off-by: provokateurin <kate@provokateurin.de>
-rw-r--r--lib/base.php17
1 files changed, 0 insertions, 17 deletions
diff --git a/lib/base.php b/lib/base.php
index 7bfef10fec2..c334bd52a45 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -882,23 +882,6 @@ class OC {
$throttler = Server::get(IThrottler::class);
$throttler->resetDelay($request->getRemoteAddress(), 'login', ['user' => $uid]);
}
-
- try {
- $cache = new \OC\Cache\File();
- $cache->gc();
- } catch (\OC\ServerNotAvailableException $e) {
- // not a GC exception, pass it on
- throw $e;
- } catch (\OC\ForbiddenException $e) {
- // filesystem blocked for this request, ignore
- } catch (\Exception $e) {
- // a GC exception should not prevent users from using OC,
- // so log the exception
- Server::get(LoggerInterface::class)->warning('Exception when running cache gc.', [
- 'app' => 'core',
- 'exception' => $e,
- ]);
- }
});
}
}