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 script.
Also, you should see if you can get a full blown mod_perl server running. While PHP may still be faster, the difference should be negligible. A real mod_perl server is lightning fast. ---- Original Message ---- From: "Matthew Boehm" <[EMAIL PROTECTED]> Date: 3/7/06 12:10 am To: "html-template-users@lists.sourceforge.net" <html-template-users@lists.sourceforge.net> Subj: [htmltmpl] mod_perl usage Hey guys, I tried to register to the list but SF never replied back to me; so if anyone replies, I'd appreciate a CC: We use mod_perl in the format of ModPerl::PerlRun. We run only one cgi (our main app) that loads HTML pages via simple file open and uses a crude search/replace as our 'template' system. I've been trying various perl template engines (like HTML::Template and CGI::FastTemplate). Unfortunatly, due to some unknow reason, both template packages are returning cached versions of our HTML. For example, many of our CGI calls follow this pattern: http://www.ourdomain.com/cgi-bin/jefferson.cgi?companyID=XXXX Where XXXX is any one of our several thousand customer numbers. The only differences in the pages produced by the CGI are customer name, address, logo, etc..pulled from database. The problem in my testing has been thus: I access the URL above with ID 4035 and I get the correct info of company #4035. I then access the same URL but change the ID to 2134. Even though the URL shows 2134, the page displays content for 4035. I am forced to hit refresh on my browser several times before seeing 2134's info. I've explicitly turned off the caching feature of HTML::Template, yet I experience the same as above. Since our main app is Perl based, having mod_perl greatly increases our preformance. But it seems that using mod_perl prevents us from using a template system other than our own. (I had the same experience with CGI::FastTemplate) Can anyone shed some light on this? I am tempted to just rewrite our CGI into PHP as PHP executes faster than Perl even with mod_perl and I don't get this caching problem. But that will take time. Can anyone shed some light on my situation? I am not familiar with mod_perl at all, so if we are indeed running that portion poorly assistance there would be appreciated as well. Thanks, Matthew ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Html-template-users mailing list Html-template-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/html-template-users ------------------------------------------------------------------------------ This message is intended only for the personal and confidential use of the designated recipient(s) named above. If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction, or as an official statement of Lehman Brothers. Email transmission cannot be guaranteed to be secure or error-free. Therefore, we do not represent that this information is complete or accurate and it should not be relied upon as such. All information is subject to change without notice. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Html-template-users mailing list Html-template-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/html-template-users