Skip to content

Commit

Permalink
Merge pull request #1079 from sphinx-contrib/maintain-pids-cache
Browse files Browse the repository at this point in the history
env: maintain tracked page identifier cache between builds
  • Loading branch information
jdknight authored Jan 30, 2025
2 parents 5723502 + 0dff978 commit 80ae2ee
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sphinxcontrib/confluencebuilder/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,9 @@ def save_cache(self):
new_dochashs = dict(self._cached_dochash)
new_dochashs.update(self._active_dochash)

new_pids = dict(self._cached_pids)
new_pids.update(self._active_pids)

try:
with self._cache_cfg_file.open('w', encoding='utf-8') as f:
json.dump(new_cfg, f)
Expand All @@ -224,6 +227,6 @@ def save_cache(self):

try:
with self._cache_publish_file.open('w', encoding='utf-8') as f:
json.dump(self._active_pids, f)
json.dump(new_pids, f)
except OSError as e:
self.builder.warn('failed to save cache (pids): ' + e)

0 comments on commit 80ae2ee

Please sign in to comment.