From 1d8103df5cada7850bbf9b83e42b14134eaf612b Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Tue, 13 Sep 2016 23:55:30 -0400 Subject: [PATCH] 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 --- Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Record.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; } -- 2.11.0