Open klonos opened 8 months ago
For historic purposes, and to provide a valid use case: in the GovCMS distro/hosting the deletion of temp files was permanently disabled and "locked" (via settings.php) after many Aussie gov sites agencies started reporting "random" disappearances of files from their sites.
The garbage collection grace period is currently hard-coded to 6hrs (21600 seconds) in the
BACKDROP_MAXIMUM_TEMP_FILE_AGE
constant incore/modules/system/system.module
. We should allow this to be configured, at least viasettings.php
but ideally via the UI as well.In D8+, this is controlled by a "Delete temporary files after" setting under
admin/config/media/file-system
:The help text for this setting reads:
Because of a known, critical data loss issue (https://www.drupal.org/project/drupal/issues/2821423 - issue open since 2016 😬 ), the option to disable deletion of temporary files was introduced in D8.4 (see https://www.drupal.org/project/drupal/issues/2801777 - and respective change record):