From d3d966ef49292822de15dd2c2a5f9386f7faa01f Mon Sep 17 00:00:00 2001 From: Raphael Roberts Date: Fri, 7 May 2021 21:28:48 -0500 Subject: [PATCH] Make cache writeback --- tibi_hardlinks/cache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tibi_hardlinks/cache.py b/tibi_hardlinks/cache.py index a14b2a9..e6943cb 100644 --- a/tibi_hardlinks/cache.py +++ b/tibi_hardlinks/cache.py @@ -5,7 +5,7 @@ from tibi_hardlinks.config import CACHE_DIR import shelve -tibi_cache = shelve.open(str((Path(CACHE_DIR) / "cache").absolute())) +tibi_cache = shelve.open(str((Path(CACHE_DIR) / "cache").absolute()), writeback=True) atexit.register(tibi_cache.close)