 
            Hi folks. I'm seeing quite a few .css files, thousands of them totaling 600+MB, building up in /var/lib/mailman3/web/static/CACHE/css. Some of them date back to when I set up the mm3 instance a few years ago.
Is this expected, or am I missing a cron job or something to clean them up?
        Thanks,
        -Dave-- Dave McGuire, AK4HZ New Kensington, PA
 
            On 7/12/21 9:53 AM, Dave McGuire wrote:
Hi folks. I'm seeing quite a few .css files, thousands of them totaling 600+MB, building up in /var/lib/mailman3/web/static/CACHE/css. Some of them date back to when I set up the mm3 instance a few years ago.
Is this expected, or am I missing a cron job or something to clean them up?
This is not expected. I don't see it on the instances I manage.
In the static directory, I see
$ du -h -d 1
1.7M	./admin
12K	./facebook
68K	./django_extensions
4.0K	./browserid
68K	./django-mailman3
2.6M	./postorius
12K	./paintstore
1.6M	./rest_framework
5.2M	./hyperkitty
404K	./CACHE
12M	.
$ find -type f|wc
     401     401   18253
I think when you run the Django admin collectstatic command, you need
to specify the --clear option.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
 
            On 7/12/21 10:45 PM, Mark Sapiro wrote:
Hi folks. I'm seeing quite a few .css files, thousands of them totaling 600+MB, building up in /var/lib/mailman3/web/static/CACHE/css. Some of them date back to when I set up the mm3 instance a few years ago.
Is this expected, or am I missing a cron job or something to clean them up?
This is not expected. I don't see it on the instances I manage.
In the
staticdirectory, I see$ du -h -d 1 1.7M ./admin 12K ./facebook 68K ./django_extensions 4.0K ./browserid 68K ./django-mailman3 2.6M ./postorius 12K ./paintstore 1.6M ./rest_framework 5.2M ./hyperkitty 404K ./CACHE 12M . $ find -type f|wc 401 401 18253I think when you run the Django admin
collectstaticcommand, you need to specify the--clearoption.
Interesting, I know nothing of that command. Is that something that should be run periodically?
         Thanks,
         -Dave-- Dave McGuire, AK4HZ New Kensington, PA
 
            On 7/12/21 7:50 PM, Dave McGuire wrote:
On 7/12/21 10:45 PM, Mark Sapiro wrote:
I think when you run the Django admin
collectstaticcommand, you need to specify the--clearoption.Interesting, I know nothing of that command. Is that something that should be run periodically?
It's being run by something that you or your package (Debian/Ubuntu ?) runs or there would be nothing in the static/ directory at all.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
- 
                 Dave McGuire Dave McGuire
- 
                 Mark Sapiro Mark Sapiro