Show
Ignore:
Timestamp:
04/23/08 06:26:24 (19 months ago)
Author:
auno
Message:

"cache_enable" valuable is removed from the page and cleaned up back-end codes. BugzID:79445

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/release-36/lib/MT/CMS/Template.pm

    r2047 r2049  
    477477            $param->{include_with_ssi}      = 0; 
    478478            $param->{cache_path}            = ''; 
    479             $param->{cache_enabled}         = 0; 
    480479            $param->{cache_expire_type}     = 0; 
    481480            $param->{cache_expire_period}   = ''; 
     
    488487            $param->{cache_path}       = $obj->cache_path 
    489488              if defined $obj->cache_path; 
    490             $param->{cache_enabled} = $obj->use_cache 
    491               if defined $obj->use_cache; 
    492489            $param->{cache_expire_type} = $obj->cache_expire_type 
    493490              if defined $obj->cache_expire_type; 
     
    562559            $template_type = 'system'; 
    563560        } 
    564         $row->{use_cache} = $obj->use_cache ? 1 : 0; 
     561        $row->{use_cache} = ( $obj->cache_expire_type != 0 ) ? 1 : 0; 
    565562        $row->{template_type} = $template_type; 
    566563        $row->{type} = 'entry' if $type eq 'individual'; 
     
    12391236    $obj->include_with_ssi( $app->param('include_with_ssi') ? 1 : 0 ); 
    12401237    $obj->cache_path( $app->param('cache_path')); 
    1241     $obj->use_cache( $app->param('cache_enabled')           ? 1 : 0 ); 
    12421238    my $cache_expire_type = $app->param('cache_expire_type'); 
    12431239    $obj->cache_expire_type($cache_expire_type); 
     
    14111407        my $published_url = $tmpl->published_url; 
    14121408        $row->{published_url} = $published_url if $published_url; 
    1413         $row->{use_cache} = $tmpl->use_cache ? 1 : 0; 
     1409        $row->{use_cache} = ( $tmpl->cache_expire_type != 0 ) ? 1 : 0; 
    14141410 
    14151411        # FIXME: enumeration of types