mirror of
https://github.com/evennia/evennia.git
synced 2026-03-24 08:46:31 +01:00
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)
|
||||
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."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue