mirror of
https://github.com/evennia/evennia.git
synced 2026-03-31 04:57:16 +02:00
Optimization: Added caching of object contents. This makes obj.contents not have to hit
the database at all. So far there are no regressions from this, but time will tell if there are any problems.
This commit is contained in:
parent
cc88d38ab6
commit
5e33690f40
2 changed files with 40 additions and 4 deletions
|
|
@ -327,7 +327,8 @@ class CmdDrop(MuxCommand):
|
|||
# we process the results ourselves since we want to sift out only
|
||||
# those in our inventory.
|
||||
results = [obj for obj in results if obj in caller.contents]
|
||||
# now we send it into the handler.
|
||||
# now we send it into the error handler (this will output consistent
|
||||
# error messages if there are problems).
|
||||
obj = AT_SEARCH_RESULT(caller, self.args, results, False)
|
||||
if not obj:
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue