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

Command to empty the SilverStripe cache?


Go to End


2 Posts   1624 Views

Avatar
martimiz

Forum Moderator, 1391 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

Avatar
swaiba

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.