Jump to:

23376 Posts in 18295 Topics by 2867 members

General Questions

SilverStripe Forums » General Questions » Slow Silverstripe site?

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

Page: 1 2 3
Go to End
Author Topic: 5070 Views
  • Willr
    Avatar
    Forum Moderator
    5490 Posts

    Re: Slow Silverstripe site? Link to this post

    Normally the cache will write to /tmp/ if your user does not have permission to write to /tmp/ I think it just doesn't keep a cache. If you have a silverstripe-cache folder it will use this instead of your /tmp/ directory

  • gavin
    Avatar
    Community Member
    13 Posts

    Re: Slow Silverstripe site? Link to this post

    Where should the /tmp/ directory be? I don't see it in the root and don't see it while browsing through the sub folders.

  • scaphis
    Avatar
    Community Member
    8 Posts

    Re: Slow Silverstripe site? Link to this post

    I think you have to create the tmp directory yourself.

    i created the alternate- it works,

    www.greenvillegraphics.com

    IS 2.23 and has one file in the cache folder and in that file there are hundreds of lines of database stuff.

    www.lapelpintrader.com

    Is 2.3 version, but in the cache folder I see hundreds of files with very little code inside them, all the same!

    Both have their moments still of loading slow. Seems like whenever I come back after an hour or so, the page initially loads up slow then every other link is fast.

  • gavin
    Avatar
    Community Member
    13 Posts

    Re: Slow Silverstripe site? Link to this post

    OK, great. I'll create the directory and assume 777 should be the permissions. With about a 20 second lag time upon the initial load and occasionally when viewing pages, I'm really looking forward to trying this out.

  • gavin
    Avatar
    Community Member
    13 Posts

    Re: Slow Silverstripe site? Link to this post

    Things are going nice and fast! I created the /tmp/ directory first and nothing was being put inside of there, so I created the /silverstripe-cache/ directory and that worked perfectly.

    scaphis, you really helped me out. I can't thank you enough.

  • Jnauta
    Avatar
    Community Member
    8 Posts

    Re: Slow Silverstripe site? Link to this post

    I am getting 40sec load times, so I changed the mysql_connect to mysql_pconnect and nothing changes. I added the silverstripe-cache folder to the root and it is loaded with the cache files, but the screen displays nothing now. any suggestions?

  • gavin
    Avatar
    Community Member
    13 Posts

    Re: Slow Silverstripe site? Link to this post

    Did you try doing the flush=1 thing after creating the cache folder? I haven't used SilverStripe for a while, so I can't give you more clearer instructions.

  • Patrick Arlt
    Avatar
    Community Member
    15 Posts

    Re: Slow Silverstripe site? Link to this post

    I was having huge load times waiting for my site to respond. I was waiting upwards of 40-60 seconds, I made the /silverstripe-cache/ folder in the same level as my /mysite/ folder (root level).

    This cut LOADS of time off the sever responses. Now im waiting less then 3 seconds for the page to respond and load up.

    On a similar topic does anyone have advice on speeding up AJAX responses? My site is at patrickarlt.com. This first one always takes several second to load up, Then all subsequent ones are really fast.

    Any ideas?

    5070 Views
Page: 1 2 3
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.