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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

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   2282 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