17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 2079 Views |
-
Cache and SilverStripe 2.2.0-rc3

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
-
Re: Cache and SilverStripe 2.2.0-rc3

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.
-
Re: Cache and SilverStripe 2.2.0-rc3

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?
-
Re: Cache and SilverStripe 2.2.0-rc3

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.
-
Re: Cache and SilverStripe 2.2.0-rc3

27 November 2007 at 11:39pm Last edited: 27 November 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
| 2079 Views | ||
|
Page:
1
|
Go to Top |


