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

Rsync static publisher and dynamic content


Reply


2 Posts   724 Views

Avatar
smares

Community Member, 25 Posts

16 May 2011 at 7:08pm

Assuming you have a large site with a lot of traffic, generating static files would probably be the best thing you can do. But what options do you have if some of your pages need to be dynamic and you also have multiple servers that handle the requests? If I understand the documentation correctly, you can set up the static publisher to also rsync modified files to other servers, but this means that you can no longer have any dynamic content, is this correct?

Avatar
Willr

Forum Moderator, 5513 Posts

17 May 2011 at 4:17pm

Edited: 17/05/2011 4:17pm

No, you can still have dynamic content if you have multiple front end webservers but each of those webservers needs to be setup to use the same single database (rather than 1 on each machine) and you'll also need to sync the entire silverstripe installation for the dynamic pages to work rather than just the static html. That is unless you have some setup on your load balancer to ensure requests to non static pages are served from the non static server but I've never experimented with that.