diff options
| author | Jordan Cook <jordan.cook@pioneer.com> | 2022-04-30 13:53:24 -0500 |
|---|---|---|
| committer | Jordan Cook <jordan.cook@pioneer.com> | 2022-04-30 13:53:24 -0500 |
| commit | a300510c4ba087fd41d31c379a9d03e3b80b55aa (patch) | |
| tree | b7f025deadfa8fc09f9ec026a024960c1e5e42ad /requests_cache/policy | |
| parent | cf69e93969f06b85fb447048ef640e31a547df9e (diff) | |
| download | requests-cache-a300510c4ba087fd41d31c379a9d03e3b80b55aa.tar.gz | |
Fix remove_expired_responses() with SQLite and expire_after=0
Diffstat (limited to 'requests_cache/policy')
| -rw-r--r-- | requests_cache/policy/actions.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/requests_cache/policy/actions.py b/requests_cache/policy/actions.py index a56d30e..fd61507 100644 --- a/requests_cache/policy/actions.py +++ b/requests_cache/policy/actions.py @@ -172,8 +172,8 @@ class CacheActions(RichMixin): self._update_from_response_headers(directives) # If "expired" but there's a validator, save it to the cache and revalidate on use - do_not_cache = self.expire_after == DO_NOT_CACHE skip_stale = self.expire_after == EXPIRE_IMMEDIATELY and not directives.has_validator + do_not_cache = self.expire_after == DO_NOT_CACHE # Apply filter callback, if any callback = self._settings.filter_fn |
