diff options
author | Robin Appelman <robin@icewind.nl> | 2025-04-07 18:12:42 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2025-04-07 19:35:41 +0200 |
commit | c89e3c2f74d6f0bf253dddc18a4a4d305821cbe7 (patch) | |
tree | 77ae38024de782c713f8e0f9ff2a45f64f75b9d5 /lib/base.php | |
parent | 084487bdd5ac052fc831509780ce2ffe5517eb41 (diff) | |
download | nextcloud-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.php | 17 |
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, - ]); - } }); } } |