Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Cache and SilverStripe 2.2.0-rc3

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

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

Page: 1
Go to End
Author Topic: 2209 Views
  • gakenny
    Avatar
    Community Member
    153 Posts

    Cache and SilverStripe 2.2.0-rc3 Link to this post

    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

  • jam13
    Avatar
    121 Posts

    Re: Cache and SilverStripe 2.2.0-rc3 Link to this post

    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.

  • gakenny
    Avatar
    Community Member
    153 Posts

    Re: Cache and SilverStripe 2.2.0-rc3 Link to this post

    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?

  • jam13
    Avatar
    121 Posts

    Re: Cache and SilverStripe 2.2.0-rc3 Link to this post

    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.

  • nexialis
    Avatar
    Community Member
    5 Posts

    Re: Cache and SilverStripe 2.2.0-rc3 Link to this post

    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

    2209 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.