Removed a bug in property cache that disabled the cache if the property was null (e.g for player lookups)
This commit is contained in:
parent
8a44daef7e
commit
1dee271fc7
1 changed files with 1 additions and 1 deletions
|
|
@ -64,7 +64,7 @@ def _get_cache(obj, name):
|
||||||
return _GA(obj, "_cached_db_%s" % name)
|
return _GA(obj, "_cached_db_%s" % name)
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
val = _GA(obj, "db_%s" % name)
|
val = _GA(obj, "db_%s" % name)
|
||||||
if val: _SA(obj, "_cached_db_%s" % name, val)
|
_SA(obj, "_cached_db_%s" % name, val)
|
||||||
return val
|
return val
|
||||||
def _set_cache(obj, name, val):
|
def _set_cache(obj, name, val):
|
||||||
"On-model Cache setter. Also updates database."
|
"On-model Cache setter. Also updates database."
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue