|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
colynb Smarty n00b
Joined: 12 Aug 2004 Posts: 4
|
Posted: Tue Oct 12, 2004 4:23 pm Post subject: Storing Cached Smarty Templates Remotely |
|
|
The way our servers are set up at my company, it would be beneficial to store cached smarty templates on a different machine. I'll probably have to create my own cache handler function using rsync to send the files, but wasn't sure if I was wasting my time. Has anyone had any experience with this? Please help.
--colynb |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Tue Oct 12, 2004 6:41 pm Post subject: |
|
|
NFS? |
|
Back to top |
|
boots Administrator
Joined: 16 Apr 2003 Posts: 5611 Location: Toronto, Canada
|
Posted: Tue Oct 12, 2004 7:07 pm Post subject: Re: Storing Cached Smarty Templates Remotely |
|
|
colynb wrote: | The way our servers are set up at my company, it would be beneficial to store cached smarty templates on a different machine |
hmm. My gut is that this will be hard to do well unless you have a superfast low-latency network. If not, then you may be killing overall performance (and the idea of the cache) since each Smarty instance in your farm will have to go from doing local filesystem checks to making calls over the wire. |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Tue Oct 12, 2004 7:21 pm Post subject: |
|
|
We used to have our cache files centralized for our web cluster, but we found it was much more efficient to have each cluster member store its own set of compile/cache files and setup scripts to clear the files across all the cluster members. This costs some disk space on each member, but removing the network latency from the page load times were well worth it. |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|