From: Dan Scott Date: Wed, 14 Sep 2016 03:55:30 +0000 (-0400) Subject: Disable most added content types X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=1d8103df5cada7850bbf9b83e42b14134eaf612b;p=contrib%2FConifer.git Disable most added content types We're using OpenLibrary, which rarely provides hits for this kind of added content. Save ourselves 5 additional web server hits and delayed record display time by disabling the added content outright. Note that we will still get cover images! Signed-off-by: Dan Scott --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Record.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Record.pm index 5f3d51c626..83c1065df5 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Record.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Record.pm @@ -26,8 +26,8 @@ sub load_record { return Apache2::Const::HTTP_BAD_REQUEST unless $rec_id and $rec_id =~ /^\d+$/; - $self->added_content_stage1($rec_id); - $self->timelog("past added content stage 1"); +# $self->added_content_stage1($rec_id); +# $self->timelog("past added content stage 1"); my $org = $self->_get_search_lib(); my $org_name = $ctx->{get_aou}->($org)->shortname; @@ -196,9 +196,9 @@ sub load_record { $self->timelog("past expandies"); - $self->added_content_stage2($rec_id); +# $self->added_content_stage2($rec_id); - $self->timelog("past added content stage 2"); +# $self->timelog("past added content stage 2"); return Apache2::Const::OK; }