Merge pull request #363 from maykinmedia/do-not-overwrite-cache

Do not overwrite cache
This commit is contained in:
Roland Hedberg
2016-10-12 17:21:52 +02:00
committed by GitHub

View File

@@ -96,6 +96,7 @@ class Cache(object):
"""
cni = code(name_id)
(timestamp, info) = self._db[cni][entity_id]
info = info.copy()
if check_not_on_or_after and time_util.after(timestamp):
raise ToOld("past %s" % str(timestamp))