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.

General Questions /

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

Slow Silverstripe site?


Reply


17 Posts   5287 Views

Avatar
Willr

Forum Moderator, 5513 Posts

3 March 2009 at 11:36am

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

Avatar
gavin

Community Member, 13 Posts

3 March 2009 at 11:40am

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.

Avatar
scaphis

Community Member, 8 Posts

3 March 2009 at 12:10pm

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.

Avatar
gavin

Community Member, 13 Posts

3 March 2009 at 12:15pm

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.

Avatar
gavin

Community Member, 13 Posts

3 March 2009 at 12:26pm

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.

Avatar
Jnauta

Community Member, 8 Posts

30 March 2010 at 5:42am

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?

Avatar
gavin

Community Member, 13 Posts

30 March 2010 at 5:56am

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.

Avatar
Patrick Arlt

Community Member, 15 Posts

30 March 2010 at 4:58pm

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 [url]patrickarlt.com[/url]. This first one always takes several second to load up, Then all subsequent ones are really fast.

Any ideas?