{ idea tested on TT 2.08 }

When my application is updated, apache is usually restarted - I do not
need continuous stat'ing template files. Moreover, I do not want the
cache to be sorted or annotaded with timestamps - to get as good
apache memory shareability as possible. 

To get the above behaviour when Provider is given DONT_REFRESH
parameter I subclassed Provider and wrote the following:

    sub _refresh {                                        
      my ($self, $slot) = @_;                             
                                                          
      my $dont_refresh = $self->{PARAMS}->{DONT_REFRESH}; 
                                                          
      return if $dont_refresh;                            
                                                          
      return $self->SUPER::_refresh($slot);               
    }

What about adding similar option to the default Provider?
Or maybe something similar exists?

-- 
( Marcin Kasperski   | You have the right to peace, fun, and productive      )
( http://www.mk.w.pl |            and enjoyable work. (Beck)                 )
(----------------------------------------------------------------------------)
( Porady dla programisty Oracle: http://www.mk.w.pl/porady/porady_oracle     )

_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to