aboutsummaryrefslogtreecommitdiffstats
path: root/lib/base.php
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2025-04-07 18:12:42 +0200
committerRobin Appelman <robin@icewind.nl>2025-04-07 19:35:41 +0200
commitc89e3c2f74d6f0bf253dddc18a4a4d305821cbe7 (patch)
tree77ae38024de782c713f8e0f9ff2a45f64f75b9d5 /lib/base.php
parent084487bdd5ac052fc831509780ce2ffe5517eb41 (diff)
downloadnextcloud-server-files-cache-node.tar.gz
nextcloud-server-files-cache-node.zip
feat: move file cache to a background jobfiles-cache-node
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/base.php')
-rw-r--r--lib/base.php17
1 files changed, 0 insertions, 17 deletions
diff --git a/lib/base.php b/lib/base.php
index bda6b6e01a1..46a58c56e8a 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -874,23 +874,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,
- ]);
- }
});
}
}