From a0641bafbf6ba93c5a0a7235a4cf3d765e153c00 Mon Sep 17 00:00:00 2001 From: Fabian Halkivaha Date: Mon, 23 Feb 2026 16:31:41 +0100 Subject: [PATCH] show full path for cache file in order to debug not working cache, it would be helpful to actually see where the plugin saves the file to. --- mkdocs_git_committers_plugin_2/plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mkdocs_git_committers_plugin_2/plugin.py b/mkdocs_git_committers_plugin_2/plugin.py index d77ede3..a373b30 100644 --- a/mkdocs_git_committers_plugin_2/plugin.py +++ b/mkdocs_git_committers_plugin_2/plugin.py @@ -310,7 +310,7 @@ def on_page_context(self, context, page, config, nav): def on_post_build(self, config): if not self.should_save_cache: return - LOG.info("git-committers: saving page authors cache file") + LOG.info(f"git-committers: saving page authors cache file to {self.config['cache_dir']}/page-authors.json") json_data = json.dumps({'cache_date': datetime.now().strftime("%Y-%m-%d"), 'page_authors': self.cache_page_authors}) os.makedirs(self.config['cache_dir'], exist_ok=True) f = open(self.config['cache_dir'] + "/page-authors.json", "w") @@ -319,7 +319,7 @@ def on_post_build(self, config): def on_pre_build(self, config): if os.path.exists(self.config['cache_dir'] + "/page-authors.json"): - LOG.info("git-committers: found page authors cache file - loading it") + LOG.info(f"git-committers: found page authors cache file {self.config['cache_dir']}/page-authors.json - loading it") f = open(self.config['cache_dir'] + "/page-authors.json", "r") cache = json.loads(f.read()) self.cache_date = cache['cache_date']