I just started using file_cache and am seeing some unexpected behavior. Here is how I am using it.

The home page has a block 'Featured Links' which displays a set of default links.
If the user is logged in, he gets an additional link 'Customize' that enables him to customize these links and if he chooses do so, the customized links show up in the block instead of default ones.


Looks like, the 'Featured Links' block is behaving inconsistently i.e. sometimes after I log out, I continue to see the customized links. At other times, even after I log in, I still see the default links.

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);

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.

Thanks
Nishi



-------------------------------------------------------
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