mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Previously our cache would expire any asset that was not accessed for 10 minutes. This is way too short and was never intended. All the assets we are serving are usually very long living assets like avatars and css files 1 day is a reasonable setting here cause it offers far better protection. I would consider upping this to a week though longer term. Maximum disk space of cache was increased as well to 600m. Very unlikely to ever hit this except on very large sites. Additionally, this places all the cached assets in nested directories, we never want cached files to be in one giant directory cause it is inefficient