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:

Archive /

Our old forums are still available as a read-only archive.

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

Cache and SilverStripe 2.2.0-rc3


Go to End


5 Posts   2496 Views

Avatar
gakenny

Community Member, 153 Posts

24 November 2007 at 4:40pm

Hello,

With this new version, have you relocated the cache folder back to the /tmp directory on the server?

Previously, I have created a folder called silverstripe-cache in the root of the site and SilverStripe happily used this. Can this be reinstated?

Cheers,

Gary

Avatar
jam13

121 Posts

25 November 2007 at 11:30am

This got me too. It seems that the ordering has been changed so that it:

1) Looks for a folder called silverstripe-cache-path-to-web-root in the web root

2) Looks for a folder called silverstripe-cache-path-to-web-root in the system tmp folder and if it's not there then it tries to create it

3) Falls back to a folder called silverstripe-cache in the web root if 2) fails (which is unlikely)

Whilst I can see the point of having a site unique cache directory if you create it in the system tmp directory, I can't see why it needs to include the path in the folder name in 1) - seems kind of redundant.

Avatar
gakenny

Community Member, 153 Posts

26 November 2007 at 11:48am

Thanks jam13 - this changed from RC1 to RC3!

How did you find this one out? Did you look at the code or was it documented somewhere that I missed?

Avatar
jam13

121 Posts

27 November 2007 at 11:29pm

Noticed the files in /tmp and then looked in the code. It's in Core.php IIRC.

RC4 has been changed so that "silverstripe-cache" in the web root works again.

Avatar
nexialis

Community Member, 5 Posts

27 November 2007 at 11:39pm

Edited: 27/11/2007 11:49pm

Creating a silverstripe-cache subfolder in the main Sstripe folder is working
and there is no more /tmp/silverstripe-cache-something folder. I think this
subfolder should be already created in the default install SStripe package with
acces rights verification like some other folders.

EDITED : and a .htaccess to forbid direct web acess of files in that folder :)