Hi there,
just noticed that old files generated by AdvAgg don't get deleted when a new one is created.
My website has now:
940mb of ~230kb .js files
70mb of ~80kb .css files
I just deleted them all, cleared cache at admin/settings/performance and js folder already has 20mb in 93 js files.
I have no clue how you coded the module, but just before it begins generating new files, it should empty both folders (css & js).
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | advagg-1161644-2.patch | 678 bytes | mikeytown2 |
Comments
Comment #1
mikeytown2 commentedThis issue has to do with not deleting files if it's over 30 days old. I follow D7 Core
drupal_delete_file_if_stale() D7 is called by these 2 functions: drupal_clear_css_cache() D7 & drupal_clear_js_cache() D7
If you wish to adjust this, there are 3 setting in advagg that have to do with time.
When adjusting these settings make sure that:
advagg_file_last_used_interval is longer then your cron runs.
advagg_stale_file_threshold is at least 4x advagg_file_last_used_interval
advagg_stale_file_last_used_threshold is 1/2 of advagg_file_last_used_interval
Comment #2
mikeytown2 commentedgoing to move the defaults to 6 and 3 days. Marking this as fixed; let me know if you have any other issues. This might be related to your issue as well #1161570: Flushing the advagg cache not working.