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

Command to empty the SilverStripe cache?


2 Posts   1141 Views


19 February 2011 at 4:43am Forum Moderator, 1095 Posts

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


20 February 2011 at 9:04pm Forum Moderator, 1796 Posts

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.