RE: [htmltmpl] verified something

2006-03-07 Thread Paulsen, Brian
Try using double_file_cache? I'm thinking this may be more of a HTML::Template issue than a mod_perl issue. What happens if you print the companyID value to STDERR ? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matthew Boehm Sent: Tuesday, March 07

[htmltmpl] verified something

2006-03-07 Thread Matthew Boehm
ok so I used telnet to grab a few instances of our CGI using HTML::Template and the caching is still present. drmac-mac:~ drmac$ telnet www.ourdomain.com 80 Trying 170.86.88.385... Connected to www.ourdomain.com. Escape character is '^]'. GET /pages/sctest/roomlogin_new.cgi?companyID=2 Welcome

Re: [htmltmpl] mod_perl usage

2006-03-07 Thread Matthew Boehm
I jumped the gun on this one. I have two versions of our CGI. They are exactly the same except version 2 uses HTML::Template. Version 1 doesn't experience this cache problem. Version 2 does. This is why I believe HTMLTemp is causing this in conjunction with mod_perl. I'm going to try a telnet

RE: [htmltmpl] mod_perl usage

2006-03-07 Thread Paulsen, Brian
If you can put something together easily and test it out, I would suggest the function that you are describing. If you are using the CGI package, you should be able to simply pass around the CGI object. Brian -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf

Re: [htmltmpl] mod_perl usage

2006-03-07 Thread Matthew Boehm
Hmm. I am using strict, but I do have many "globals". Here are the first few lines of our program: #!/usr/bin/perl use strict; use warnings; use lib '/path/to/something/'; use tools qw($dbh $webpage_obj &displayError $template &messageDie); $template = new HTML::Template(filename => '/home/

RE: [htmltmpl] mod_perl usage

2006-03-07 Thread Paulsen, Brian
Ok... I see that in most of my code, I'm calling HTML::Template with the following parameters: cache => 1, double_file_cache => 1 When using HTML::Template::Expr, I do NOT set double_file_cache to 1 (I think because I had caching issues like you are describing) -Original Message- Fr

RE: [htmltmpl] mod_perl usage

2006-03-07 Thread Paulsen, Brian
To expound a bit more on the "use strict;" line... The big difference between mod_perl and normal CGI execution is that in mod_perl, the forked child Apache process is used to serve up content. In normal CGI execution, a separate process is forked off and that is used. If you have global variable

Re: [htmltmpl] mod_perl usage

2006-03-07 Thread Matthew Boehm
Already using use strict, and using use warnings. And yes, the script works fine. -Matthew Paulsen, Brian wrote: I have an idea of where the caching is happening... Put this at the top of your script : use strict; Does your script still work? -Original Message- From: [EMAIL PROTEC

Re: [htmltmpl] mod_perl usage

2006-03-07 Thread Matthew Boehm
I use Apache::Registry (this has likely been replaced by the ModPerl::Registry that you mention) From what I just read, Apache::Registry is the mod_perl version 1 for Apache1 and ModPerl::registry is mod_perl 2 for Apache2 The scripts do get compiled and stored in memory and it's exactly wh

RE: [htmltmpl] mod_perl usage

2006-03-07 Thread Paulsen, Brian
I have an idea of where the caching is happening... Put this at the top of your script : use strict; Does your script still work? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matthew Boehm Sent: Tuesday, March 07, 2006 9:44 AM To: html-template-users

Re: [htmltmpl] mod_perl usage

2006-03-07 Thread Matthew Boehm
Here is some debug information. What follows is 3 attempts at my CGI. First was with the companyID of 1 (Traders International) 2nd was ID 26 (Trading Zoo) and 3rd was ID 2 (omNovia). Notice that the #3 attempt shows the same values from attempt #1 and that #3's debug output is MUCH less than

RE: [htmltmpl] mod_perl usage

2006-03-07 Thread Paulsen, Brian
I use Apache::Registry (this has likely been replaced by the ModPerl::Registry that you mention) The scripts do get compiled and stored in memory and it's exactly what you want. It sounds to me that you are writing the output to a file and then redirecting to that file. I do not have the "+Parse

RE: [htmltmpl] mod_perl usage

2006-03-07 Thread Matthew Boehm
> I have no experience of ModPerl::PerlRun. How then are you running ModPerl? My apache conf contains this which activates mod_perl for a specific directory on our web server: Options +ExecCGI SetHandler perl-script PerlResponseHandler ModPerl::PerlRun PerlOptions +Par

RE: [htmltmpl] Usage question

2006-03-07 Thread Paulsen, Brian
I did. I'll dig it up to share again. Brian -Original Message- From: Bodo Schulze [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 07, 2006 6:57 AM To: Paulsen, Brian Cc: html-template-users@lists.sourceforge.net Subject: Re: [htmltmpl] Usage question Brian Paulsen wrote; > If it helps,

Re: [htmltmpl] Usage question

2006-03-07 Thread Bodo Schulze
Brian Paulsen wrote; > If it helps, I wrote a filter that takes a Dreamweaver template file and conv > erted it to a HTML::Template file. This allowed the Dreamweaver savvy design > er to test out modifications with the template there. Would be great if you shared this filter. Bodo ---

RE: [htmltmpl] Usage question

2006-03-07 Thread Paulsen, Brian
If it helps, I wrote a filter that takes a Dreamweaver template file and converted it to a HTML::Template file. This allowed the Dreamweaver savvy designer to test out modifications with the template there. Original Message From: "Matias Alejo Garcia" <[EMAIL PROTECTED]> Date: 3/6/06

RE: [htmltmpl] mod_perl usage

2006-03-07 Thread Paulsen, Brian
Can you have your script output something to the error log when it is run? I suspect that something is not properly configured on your server and it is setting invalid cache control headers on your output. It almost sounds like the apache server thinks it is serving up a file rather than a scr