Skip to content

Commit 6009ce4

Browse files
Merge pull request #345 from IUBLibTech/disable_user_session_features
Disable user search and session features causing performance problems
2 parents 059b4b1 + 8d2fe84 commit 6009ce4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/controllers/catalog_controller.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ class CatalogController < ApplicationController
99
include Arclight::FieldConfigHelpers
1010

1111
configure_blacklight do |config|
12+
# Disable user search and session features we don't use because
13+
# they have a huge performance impact when crawled by bots
14+
config.crawler_detector = ->(req) { true }
15+
1216
# default advanced config values
1317
config.advanced_search ||= Blacklight::OpenStructWithHashAccess.new
1418
# config.advanced_search[:qt] ||= 'advanced'

0 commit comments

Comments
 (0)