Skip to content
Prev Previous commit
Next Next commit
perf(base): Stop setting up the FS for every basic auth request
Signed-off-by: provokateurin <[email protected]>
  • Loading branch information
provokateurin committed Jul 8, 2025
commit 0eae0e3c069dcd26ffec93191baa7fe51a96768f
17 changes: 0 additions & 17 deletions lib/base.php
Original file line number Diff line number Diff line change
Expand Up @@ -882,23 +882,6 @@ public static function registerCleanupHooks(\OC\SystemConfig $systemConfig): voi
$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,
]);
}
});
}
}
Expand Down