1

The servers are behind load balancer, and for whatever reason compressor created tens of thousands of cache files in /static/CACHE/js/ and /static/CACHE/css/

The only setting in my settings.py is: COMPRESS_ENABLED = True

Is there a setting I am missing to clean up the CACHE files?

Artjom B.
  • 61,146
  • 24
  • 125
  • 222
James Lin
  • 25,028
  • 36
  • 133
  • 233

1 Answers1

4

OK, I think I have found the culprit, there is a piece of template generated javascript code included inside the compress tag, causing compressor to keep generating new cache files.

eg.

{% compress js %}
    <script src="...">
    <script src="...">
    var data = {{ context_data_var }};
{% endcompress %}
James Lin
  • 25,028
  • 36
  • 133
  • 233