This closes #3198494 by removing hard-coded value of 1-week as stale file threshold in advagg_cron function. Hard-coded value is replaced with stale_file_threshold config setting as expected.
advagg_cron
stale_file_threshold