diff options
-rw-r--r-- | src/couch/src/couch_server.erl | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/couch/src/couch_server.erl b/src/couch/src/couch_server.erl index ef895a414..c4b7bf199 100644 --- a/src/couch/src/couch_server.erl +++ b/src/couch/src/couch_server.erl @@ -101,9 +101,14 @@ open(DbName, Options0) -> end. update_lru(DbName, Options) -> - case lists:member(sys_db, Options) of - false -> gen_server:cast(couch_server, {update_lru, DbName}); - true -> ok + case config:get_boolean("couchdb", "update_lru_on_read", false) of + true -> + case lists:member(sys_db, Options) of + false -> gen_server:cast(couch_server, {update_lru, DbName}); + true -> ok + end; + false -> + ok end. close_lru() -> |