Changeset 2343

Show
Ignore:
Timestamp:
05/15/08 19:33:29 (21 months ago)
Author:
bchoate
Message:

Removed template cache-by-id from weblogpublisher (D::OD ram cache does this).

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/release-38/lib/MT/WeblogPublisher.pm

    r2299 r2343  
    4848    while (my ($type, $typedata) = each %$types) { 
    4949        if ('HASH' eq ref $typedata) { 
    50             # $typedata = { %$typedata };  # don't edit registry 
    51             # $typedata->{$_} = $mt->handler_to_coderef($typedata->{$_}) 
    52             #     for qw( archive_label archive_file archive_title date_range 
    53             #             archive_group_iter archive_group_entries 
    54             #             archive_entries_count ); 
    55             # $typedata->{default_archive_templates} = [ 
    56             #     map { { %$_ } } 
    57             #         @{ $typedata->{default_archive_templates} || [] } 
    58             # ]; 
    59             # All of the above is useless, since we're replacing $typedate 
    60             # by this object. 
    6150            $typedata = MT::ArchiveType->new( %$typedata ); 
    6251        } 
     
    914903    $url .= $map->{__saved_output_file}; 
    915904 
    916     my $cached_tmpl = MT->instance->request('__cached_templates') 
    917       || MT->instance->request( '__cached_templates', {} ); 
    918905    my $tmpl_id = $map->template_id; 
    919906 
     
    930917    } 
    931918 
    932     my $tmpl = $cached_tmpl->{$tmpl_id}; 
    933     unless ($tmpl) { 
    934         $tmpl = MT::Template->load($tmpl_id); 
    935         if ($cached_tmpl) { 
    936             $cached_tmpl->{$tmpl_id} = $tmpl; 
    937         } 
    938     } 
    939  
     919    my $tmpl = MT::Template->load($tmpl_id); 
    940920    $tmpl->context($ctx); 
    941921