New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add config value for TTL of files in cache folder before removed by garbage collection #23486
Conversation
I'm wondering if we better set this in the chunking code instead of adjusting the default which is used in different places as well. https://github.com/owncloud/core/blob/master/lib/private/filechunking.php#L70 |
@DeepDiver1975 Do you mean changing
to
in https://github.com/owncloud/core/blob/master/lib/private/filechunking.php#L67-L73 |
I was wondering if it would be more elegant to update the Nevertheless could we keep that variable if someone experiences problems while uploading a large file over multiple days and can't ensure that at least one chunk is uploaded every 24 hours. |
That would be expensive, you'd need to touch the mtime of all existing chunks (which could be a lot) while leaving the current one untouched. |
@fkammer also, yes I think #23486 (comment) is correct. Move the config value to the "FileChunking" class. |
Looks like the TTL value passed in 'set()` is also likely to cause other trouble, see #24653 Maybe we should get rid of it or make it instance-global instead of file-specific. |
Moved to #24812 that implements the correct approach. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Closes #23455
Excerpt from issue:
Steps to reproduce
Expected behaviour
Actual behaviour
Problem: The upload takes forever as the client is not able to upload all chunks in 24 hours.