ToDo
If a request is authenticated and does not use cookies, it will always set up the filesystem.
The reason is the post-login gc we do:
|
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 |
|
\OC::$server->getLogger()->logException($e, [ |
|
'message' => 'Exception when running cache gc.', |
|
'level' => ILogger::WARN, |
|
'app' => 'core', |
|
]); |
|
} |
I think it is time to move that to a proper cron job instead. It would potentially clean up chunked upload attempts but there is no need to do this with every successful login?!
ToDo
If a request is authenticated and does not use cookies, it will always set up the filesystem.
The reason is the post-login gc we do:
server/lib/base.php
Lines 815 to 831 in e6d9ef2
I think it is time to move that to a proper cron job instead. It would potentially clean up chunked upload attempts but there is no need to do this with every successful login?!