Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Cleaning out the assets folder


Reply

9 Posts   965 Views

Avatar
zenmonkey

15 December 2012 at 9:28am Community Member, 528 Posts

Ok here is the First kick at the can

https://github.com/thezenmonkey/SilverStripe-2.4-CleanAssets

It kept running into timeouts on DreamHost, but I just kept rerunning it until it was done, that seemed to work fine, Cleaned 800 files taking up over a 1GB down to 90 files. You need to be careful that you edit the code to handle your relations.

I also didn't do any parsing for $has_many relations as I didn't need it