Skip to content
This repository was archived by the owner on May 11, 2021. It is now read-only.

Fix #176: Ensure that the local cache is reset if the remote cache is cleared #177

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions modeldict/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,9 @@ def _populate(self, reset=False):
# We've updated from remote, so mark ourselves as
# such so that we won't expire until the next timeout
self._local_last_updated = now
else:
self._local_cache = None
self._local_last_updated = None

# We last checked for remote changes just now
self._last_checked_for_remote_changes = now
Expand Down