I have Advagg Module for Drupal 7.x and i have many files in folders advagg_js/css.... why? -
i have drupal 7.x
, advanced css/js aggregation
7.x-2.7
in folders advagg_js , advagg_css (path sites/default/files) have have many identical files , don't understand why...
this name of file in advagg_css :
css____tq6dknpjnnlolloo1chze6a0euazr40c2jw8lenlk__cmbidt93019zjxjbpnkuaosv78ghkpc3vgajyuwrvng__u78dxvtmngrsprqhj0bcjeltm2p5inlkjg6oqm4a72o
how can delete these files without doing damage?
maybe in performance/advagg/operations
in box cron maintenance tasks must check
clear stale files
remove stale files. scan files in advagg_css/js directories , remove ones have not been accessed in last 30 days.
????
i hope can me...
thanks lot
i can guarantee there few duplicate files in directories. if want, can manually delete every file in there; lot of them generated again you're having lot of files (the css/js files auto created on demand, image styles). advagg @ preventing 404 happening when requesting aggregated css/js file. can adjust how old file needs in order considered "stale". inside of core drupal_delete_file_if_stale() function drupal_stale_file_threshold
variable. changing inside of settings.php file 2 days $conf['drupal_stale_file_threshold'] = 172800;
make drupal more aggressive in terms of removing aggregated css , js files.
long term if want reduce number of different css/js files being created you'll need reduce number of combinations/variations possible css , js assets. on "admin/config/development/performance/advagg/bundler" page under raw grouping info tell how many different groupings possible, take number , multiply number of bundles (usually 2-6 if following guide https://www.drupal.org/node/2493801 or 6-12 if using default settings) , that's number of files can generated. multiply 2 gzip. on 1 of our sites gives on 4k files.
in terms of file names first base64 group file name, second base64 group file contents, , third base64 group advagg settings. allows aggregates contents recreated knowing filename additional info stored in database.
Comments
Post a Comment