We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48e4eda commit 61ae512Copy full SHA for 61ae512
1 file changed
rocrate_validator/models.py
@@ -2699,9 +2699,9 @@ def __post_init__(self):
2699
"Offline mode enabled without a persistent cache path: "
2700
"all HTTP-backed resources will fail unless pre-populated."
2701
)
2702
- # Reset any previously initialized singleton so new settings take effect.
2703
- HttpRequester.reset()
2704
- # initialize the HTTP cache
+ # Re-apply the cache settings to the HTTP requester. ``initialize_cache``
+ # reconfigures the existing singleton in place (rather than dropping it),
+ # so new settings take effect without discarding state set on the instance.
2705
HttpRequester.initialize_cache(
2706
cache_path=str(self.cache_path) if self.cache_path is not None else None,
2707
cache_max_age=self.cache_max_age,
0 commit comments