1

I use css and js aggregation for increase the speed of a drupal 7 website. Now, when I log in with user A, four news files (one css and one js) are added in the files website directory like that :

enter image description here

In linux, the profmances becomes bad when a folder contains too many files. So i'm looking for save these files in a hierarchical structure of directories, example :

directory_css_day0/mounth0/year0

-> contains somes css

directory_css_day1/mounth0/year0

-> contains somes css

...

directory_css_dayN/mounthN/yearN

-> contains somes css

How can I do that with Drupal mechanisms ?

Not the subjet of my previous topic

This previous post speaks about the number of files. Here, I'm looking for a way for manage the filesystem. I thought it was better to create another topic

  • 2
    Those files should be being cleared out on cron, so under normal circumstances this isn't something you need to worry about. Check that your cron jobs are running properly and try tuning the drupal_stale_file_threshold variable to something more appropriate for your usage – Clive May 23 '16 at 8:28
  • deleted in 30 day with default configuration. But, this website will manage a large number of user then a large number of files everyday. And if I shorten the time of removal, it means the page load time will become periodically longer. That's why I'm looking to save these files in a hierarchical structure of directories – user2137454 May 23 '16 at 8:44
  • 1
    Drupal doesn't have support for that so I think you'd be looking at hacking a bunch of core code to change it. Might be wrong though – Clive May 23 '16 at 8:49
  • 3
    You have already posted CSS/JS aggregation, huge number of files Please do not double post. – Neograph734 May 23 '16 at 9:37
  • 1
    this previous post speaks about the number of files. Here, I'm looking for a way for manage the filesystem. I thought it was better to create another topic – user2137454 May 23 '16 at 9:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.