summaryrefslogtreecommitdiff
path: root/src/main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cc')
-rw-r--r--src/main.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cc b/src/main.cc
index b756b6e5..eeff5bb7 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -201,7 +201,7 @@ namespace ledger {
if (! session.cache_file)
session.use_cache = false;
- else
+ else if (session.use_cache)
session.use_cache = ! session.data_file.empty() && session.price_db;
DEBUG("ledger.session.cache", "1. use_cache = " << session.use_cache);