[Feature]: Download cache change management #4086
Labels
Core (ckan.dll)
Issues affecting the core part of CKAN
Enhancement
New features or functionality
GUI
Issues affecting the interactive GUI
Problem
When updating the cache folder to a new location, existing contents of the cache are not moved to the new location, and the existing contents are not deleted.
This means that the existing contents effectively become orphaned files.
CKAN still appears to have them marked as being downloaded, and allows the "purge from cache" option to be selected, however when clicking on this option it does not delete the cached download from what is now the old location.
Suggestion
When changing the download cache location, the existing cache data should be moved to the new cache location, potentially unless an option is ticked not to override one of these defaults.
Alternatives
Alternatively, the old cache should be purged automatically when selecting a new location.
Another alternative would be to take no actions with the old cache, but prompt the user that the old location still contains data, e.g.
"Old cache location contains xxx MiB of data. Do you wish to purge?"
Additional context
No response
The text was updated successfully, but these errors were encountered: