Quoting Tommy Davis <[EMAIL PROTECTED]>:

> Hi,
> 
> We use HTML::Template heavily in conjunction with mod_perl on linux.
> We're considering moving all our templates to a nfs-server. However I'm 
> a little concerned about performance.
> 
> H:T does a mtime check everytime we use a template (using "file_cache"). 
> We could use the "blind_cache" option to avoid that, but it's very 
> convenient to be able to update the templates without restarting the 
> server ( even on production servers ).
> 
> We've considered adding a "touchfile" option to H:T, like in Apache::Reload.
> 
> Does anyone on the list have experience storing templates on a nfsserver?

If the performance of NFS is worrying you, then why use it?  Perhaps an
alternate solution would be just as flexible and not have the performance hit of
NFS.

I would consider using a central Template repository and syncing it with your
app servers using rsync.  Everytime you make a change to a template, you run a
script that rsync's all the templates to your app servers.

This way files are all stored locally on each app server, and file stamps are
only changed when the template is changed.

It does require one extra step to activate your changes, but that is not really
a bad thing in my opinion when dealing with production servers (and using a
touchfile would require an extra step as well).

Cheers,

Cees


-------------------------------------------------------
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
Html-template-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/html-template-users

Reply via email to