Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

Storing Cached Smarty Templates Remotely

 
Post new topic   Reply to topic    Smarty Forum Index -> Smarty Development
View previous topic :: View next topic  
Author Message
colynb
Smarty n00b


Joined: 12 Aug 2004
Posts: 4

PostPosted: Tue Oct 12, 2004 4:23 pm    Post subject: Storing Cached Smarty Templates Remotely Reply with quote

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
View user's profile Send private message
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7368
Location: Lincoln Nebraska, USA

PostPosted: Tue Oct 12, 2004 6:41 pm    Post subject: Reply with quote

NFS?
Back to top
View user's profile Send private message Visit poster's website
boots
Administrator


Joined: 16 Apr 2003
Posts: 5611
Location: Toronto, Canada

PostPosted: Tue Oct 12, 2004 7:07 pm    Post subject: Re: Storing Cached Smarty Templates Remotely Reply with quote

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
View user's profile Send private message
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7368
Location: Lincoln Nebraska, USA

PostPosted: Tue Oct 12, 2004 7:21 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Smarty Development All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP