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, Ed, biapar, Willr, Ingo, swaiba

Command to empty the SilverStripe cache?

Go to End

2 Posts   1569 Views


Forum Moderator, 1373 Posts

19 February 2011 at 4:43am

Hi all

Is there an 'official' way to clear (empty) the silverstripe-cache/ or even only the silverstripe-cache/cache/ directory? Without renewing it - and not manually :-) I'm asking this because on a shared hosting account, cachefiles are owned by Apache, and I can't remove them manually.

I've made a little script that can, but I'd feel stupid using that all the time if there's some nice SilverStripe command I missed that would do it for me?

Thanks, Martine


Forum Moderator, 1899 Posts

20 February 2011 at 9:04pm

Hi martimiz,

I don't think there is (or should I say I searched, but didn't find anything with TEMP_FOLDER and delete all stuff in it) - any chance you'd post your deletescript please - I think it should be easier too.