core icon indicating copy to clipboard operation
core copied to clipboard

Push Pub: Clean up bundles directory upon successfull publishing

Open levosgien opened this issue 12 years ago • 6 comments

As suggested by a client a way to avoid the bundle directory from growing continuously (scheduled clean-up or remove bundles upon successful publishing) would avoid running out of space.

levosgien avatar May 08 '14 13:05 levosgien

We can make a delete on a scheduled job but this is for the client to determine for now. I would create a cron job or something until we build a confinable mechanism on length to keep

jtesser avatar May 08 '14 14:05 jtesser

A number of clients have asked about this lately, let's get this added in Mingle.

chrismccracken avatar Jan 19 '16 21:01 chrismccracken

This is a problem for clients, particularly those using ext3/4 where inodes aren't scalable and has caused them production problems.

mattyarbrough avatar Sep 14 '16 15:09 mattyarbrough

This one would be cool. On site client request.

oarrietadotcms avatar Nov 14 '17 15:11 oarrietadotcms

find /path/to/assets/bundles -mtime +5 -exec rm {} \;

wezell avatar Nov 14 '17 15:11 wezell

Done here, as part of the tempResource clean up. It needs doc for 5.2

bundles.delete.enabled=true
// delete bundles older than two days
bundles.delete.older.than.milliseconds=1000 * 60 * 60 * 24 * 2

https://github.com/dotCMS/core/blob/master/dotCMS/src/main/java/com/dotmarketing/quartz/job/BinaryCleanupJob.java#L58

wezell avatar Sep 03 '19 14:09 wezell