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:
Griatch 2012-08-19 18:48:29 +02:00
parent cc88d38ab6
commit 5e33690f40
2 changed files with 40 additions and 4 deletions

View file

@ -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