On Sun, 16 May 2004, Nishikant Kapoor wrote:

> Apparently, 'featuredLinks.cgi' is returning the template from the cache
> when I expect it to generate a new one. This is how I am calling the
> template:
>
>    my $tmpl = HTML::Template->new(filename => $linksTmpl,
>                                   file_cache => 1,
>                                   file_cache_dir => 'tmplCache',
>                                file_cache_dir_mode => 0777);

What do you mean by 'generate a new one'?  Are you auto-generating
your templates in some way?  Usually templates are edited by hand and
the file_cache only refreshes when the mtime on the file changes due
to an edit.

> Another issue, though not a big one. Even though I specify '0777' for
> creating file_cache_dir, I still get 'tmplCache' created with '0755'
> permissions.

Huh, that's odd.  I'm passing that mode as the second arg to mkdir().
That should work.  Are you sure you didn't create the directory
yourself?

-sam



-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
_______________________________________________
Html-template-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/html-template-users

Reply via email to