Download_cache bug strikes back

The download_cache removal code turns out not to be working again (or: still)

Older bug report including fix here.

The file selection works fine now, but the xargs rm -f does not.
Since the code is not entering the download_cache directory first, it’s trying to remove those files somewhere else.

So I guess it should be something like

ls -tr #{CACHE_DIR} | head -n -#{CACHE_MAXIMUM_SIZE} | awk '$0="#{CACHE_DIR}/"$0'| xargs rm -f

2 Likes

Maybe @zogstrip can look again when he is back?

1 Like

Thanks for reporting this issue :+1:

https://github.com/discourse/discourse/commit/448e2fe1a2126a690cf0ddd442cb8dc16a2167f5

2 Likes

This topic was automatically closed after 23 hours. New replies are no longer allowed.