Skip to content

Commit

Permalink
db_cache_enable: another stylistic tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
evanmiller committed Nov 6, 2012
1 parent 1923bcc commit 79d5811
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/boss/boss_web_controller.erl
Expand Up @@ -69,12 +69,7 @@ init(Config) ->
DBShards = boss_env:get_env(db_shards, []),
CacheEnable = boss_env:get_env(cache_enable, false),
IsMasterNode = boss_env:is_master_node(),
DBCacheEnable = case boss_env:get_env(db_cache_enable, false) of
true ->
CacheEnable;
_ ->
false
end,
DBCacheEnable = boss_env:get_env(db_cache_enable, false) andalso CacheEnable,
DBOptions1 = [{adapter, DBAdapter}, {cache_enable, DBCacheEnable},
{shards, DBShards}, {is_master_node, IsMasterNode}|DBOptions],

Expand Down

0 comments on commit 79d5811

Please sign in to comment.