On Wed, 12 Jan 2005, Patrick Humpal wrote: > I have two standard templates that all my pages use: headers.shtml > and footers.shtml. However, it seems as if one of my CGI files is > reading the headers.shtml file from an older cached version while my > other CGI file is reading the the more recent one.
Are you sure you're looking at the right CGI? What happens if you put this right at the top of the bad CGI: die("HELLO!"); Do you see an ISE when you hit the CGI? Do you see HELLO! in the error logs? I do this test whenever nothing I do seems to work right just to be sure I'm editing the right file. Do you see the bad behavior if you run the CGI from the command-line? If not then you've probably got something wrong or different in the server configuration which is affecting your script. Are you running in Apache/mod_perl with Apache::Registry perhaps? If so you may be experiencing the effects of unintended closure usage. > use HTML::Template; > ... > my $header_template = > HTML::Template->new(filename=>'/var/www/html/headers.shtml'); > my $footer_template = > HTML::Template->new(filename=>'/var/www/html/footers.shtml'); That's not really enough code to debug. I can see you're not using any caching options but I can't really see what else you might be doing wrong... -sam ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ Html-template-users mailing list Html-template-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/html-template-users