Body: <p>Does anyone know why the angular-modules system  generated files in the contribute/dyn keeps growing at en exponential rate. Also clearing the cache doesn't seem to delete these files. We have more than 10k of those files at the moment. Any Ideas?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-11-13T14:41:39.793Z
Comments.Text: What version are you on because I'm wondering if this is a recent change, since I do remember clearing cache used to clear the folder, but yes now on latest master not only does clearing cache not clear them, just the act of clearing adds a new file every time I clear cache! And while revisiting previously cached pages seems fine, if I clear the cache and then revisit e.g. the case type settings page, it adds a new file even though the previous one is still there.
Comments.UserDisplayName: Demerit
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-11-13T14:56:31.260Z
Comments.Text: What extensions have you installed?
Comments.UserDisplayName: Jaap Jansma - CiviCooP
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-11-13T16:12:57.177Z
Comments.Text: Tried it with all extensions disabled - same thing. But now I don't think it's a recent change - see the same thing on 5.13. But I'm sure I've seen a cache clear remove the files at some point.
Comments.UserDisplayName: Demerit
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-11-14T08:34:06.787Z
Comments.Text: Yes a cache clear does remove the files. But with CiviCRM environment setting to production you also need a cache clear in Drupal. (If you are on Drupal).
Comments.UserDisplayName: Jaap Jansma - CiviCooP
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-11-14T13:37:20.360Z
Comments.Text: @JaapJansma-CiviCooP, Clearing drupal and civicrm cache does not seem to help. I've tried that. I raised this issue on mattermost and Someone mentioned on mattermost that CiviCRM doesn't do any garbage collection of these files currently.
Comments.UserDisplayName: Tunbola Ogunwande
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-11-14T13:38:43.023Z
Comments.Text: @Demerit, I am on Civicrm version 5.19. Clearing the cache does not remove the files for me too.
Comments.UserDisplayName: Tunbola Ogunwande
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-11-15T04:43:12.370Z
Comments.Text: Clearing drupal cache doesn't work for me either but I think I have a simple PR to propose so that at least the civi clear cache will clear it. Will post back here.
Comments.UserDisplayName: Demerit
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-11-15T05:08:32.123Z
Comments.Text: https://lab.civicrm.org/dev/core/issues/1395
Comments.UserDisplayName: Demerit
Tags: <civicase><mailing>
Title: Civicrm Angular Module system generated files keeps growing exponentially
ThreadText: # Civicrm Angular Module system generated files keeps growing exponentially
  
  (Asked by: username_0 on 2019-11-13)
  
  Does anyone know why the angular-modules system generated files in the contribute/dyn keeps growing at en exponential rate. Also clearing the cache doesn't seem to delete these files. We have more than 10k of those files at the moment. Any Ideas?
  
  **Tags:** civicase, mailing
  
  > **Comments:**
  > **username_1**: What version are you on because I'm wondering if this is a recent change, since I do remember clearing cache used to clear the folder, but yes now on latest master not only does clearing cache not clear them, just the act of clearing adds a new file every time I clear cache! And while revisiting previously cached pages seems fine, if I clear the cache and then revisit e.g. the case type settings page, it adds a new file even though the previous one is still there.  
  > **username_2**: What extensions have you installed?  
  > **username_1**: Tried it with all extensions disabled - same thing. But now I don't think it's a recent change - see the same thing on 5.13. But I'm sure I've seen a cache clear remove the files at some point.  
  > **username_2**: Yes a cache clear does remove the files. But with CiviCRM environment setting to production you also need a cache clear in Drupal. (If you are on Drupal).  
  > **username_0**: @JaapJansma-CiviCooP, Clearing drupal and civicrm cache does not seem to help. I've tried that. I raised this issue on mattermost and Someone mentioned on mattermost that CiviCRM doesn't do any garbage collection of these files currently.  
  > **username_0**: @username_1, I am on Civicrm version 5.19. Clearing the cache does not remove the files for me too.  
  > **username_1**: Clearing drupal cache doesn't work for me either but I think I have a simple PR to propose so that at least the civi clear cache will clear it. Will post back here.  
  > **username_1**: https://lab.civicrm.org/dev/core/issues/1395  
  
  ---
  
  ## 0 answers
  
  