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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

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

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

Cleaning out the assets folder


Go to End


9 Posts   3638 Views

Avatar
zenmonkey

Community Member, 545 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