Changeset 2546

Show
Ignore:
Timestamp:
06/11/08 00:07:21 (5 months ago)
Author:
bchoate
Message:

Limit columns loaded for finding trackbackable local domains.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/release-39/lib/MT/Entry.pm

    r2275 r2546  
    579579            @tb_domains = $cfg->OutboundTrackbackDomains; 
    580580        } elsif ($send_tb eq 'local') { 
    581             my $iter = MT::Blog->load_iter(); 
     581            my $iter = MT::Blog->load_iter(undef, { fetchonly => ['site_url'], no_triggers => 1 }); 
    582582            while (my $b = $iter->()) { 
    583583                next if $b->id == $blog->id; 
     
    741741        # Remove MT::ObjectAsset records 
    742742        my $class = MT->model('objectasset'); 
    743         my $iter = $class->load_iter({ object_id => $entry->id, object_ds => $entry->class_type }); 
    744         while (my $o = $iter->()) { 
    745             $o->remove; 
    746         } 
    747     } 
    748  
     743        $class->remove({ object_id => $entry->id, object_ds => $entry->class_type }); 
     744    } 
    749745 
    750746    $entry->SUPER::remove(@_);