From: Matthew Boehm <dr_mac@ma...> - 2006-03-07 05:09:31
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:
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
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.