summaryrefslogtreecommitdiff
path: root/parser.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-01-20 20:58:28 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-01-20 20:58:28 -0400
commitca0b524628bce1b24e381f25493e3e1b72eff211 (patch)
tree54c48b39c4317781055c30d4a4a3707c67672dad /parser.cc
parent8f1729b570b76b37e86d6f12652bfc6799f3ee99 (diff)
downloadledger-ca0b524628bce1b24e381f25493e3e1b72eff211.tar.gz
ledger-ca0b524628bce1b24e381f25493e3e1b72eff211.tar.bz2
ledger-ca0b524628bce1b24e381f25493e3e1b72eff211.zip
Don't use a cache file if it equals '<none>' (when --no-cache is used).
Diffstat (limited to 'parser.cc')
-rw-r--r--parser.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/parser.cc b/parser.cc
index debe5558..9c660f8f 100644
--- a/parser.cc
+++ b/parser.cc
@@ -126,7 +126,7 @@ unsigned int parse_ledger_data(config_t& config,
}
if (config.use_cache && ! config.cache_file.empty() &&
- ! config.data_file.empty()) {
+ config.cache_file != "<none>" && ! config.data_file.empty()) {
DEBUG_PRINT("ledger.config.cache",
"using_cache " << config.cache_file);
config.cache_dirty = true;