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:
Griatch 2012-08-19 11:15:22 +02:00
parent 8a44daef7e
commit 1dee271fc7

View file

@ -64,7 +64,7 @@ def _get_cache(obj, name):
return _GA(obj, "_cached_db_%s" % name)
except AttributeError:
val = _GA(obj, "db_%s" % name)
if val: _SA(obj, "_cached_db_%s" % name, val)
_SA(obj, "_cached_db_%s" % name, val)
return val
def _set_cache(obj, name, val):
"On-model Cache setter. Also updates database."