https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34739 Thomas Klausner <domm@plix.at> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |domm@plix.at --- Comment #19 from Thomas Klausner <domm@plix.at> --- I'm not sure how expensive calling C4::Context->preference('IncludeSeeFromInSearches') is, but probably it would be better fetch both sysprefs once, put them into a variable and inside the loop just access those vars: so instead of if ( !$update && $reindex_if_needed && ( C4::Context->preference('IncludeSeeFromInSearches') || C4::Context->preference('IncludeSeeAlsoFromInSearches') ) ) do my $syspref_include_see_from = C4::Context->preference('IncludeSeeFromInSearches') || C4::Context->preference('IncludeSeeAlsoFromInSearches') || 0; while ( my $biblio = $biblios->next ) { ... if ( !$update && $reindex_if_needed && $syspref_include_see ) Also maybe $update should be renamed to $update_biblio? -- You are receiving this mail because: You are watching all bug changes.