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


Go to End
Reply


9 Posts   1124 Views

Avatar
zenmonkey

Community Member, 532 Posts

15 December 2012 at 9:28am

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

Go to Top