mirror of
https://github.com/evennia/evennia.git
synced 2026-03-27 18:26:32 +01:00
Adding caching to tags and attribute lookups. Leads to a noticeable speed improvement.
This commit is contained in:
parent
6ad30a8ba5
commit
07af616b67
6 changed files with 145 additions and 150 deletions
|
|
@ -261,6 +261,14 @@ BASE_SCRIPT_TYPECLASS = "src.scripts.scripts.DoNothing"
|
|||
# start locations, copy the "create" command from
|
||||
# src/commands/default/unloggedin.py and customize.
|
||||
CHARACTER_DEFAULT_HOME = "#2"
|
||||
# Lookups of Attributes, Tags, Nicks, Aliases can be aggressively
|
||||
# cached to avoid repeated database hits. This often gives noticeable
|
||||
# performance gains since they are called so often. Drawback is that
|
||||
# if you are accessing the database from multiple processes (such as
|
||||
# from a website -not- running Evennia's own webserver) data may go
|
||||
# out of sync between the processes. Keep on unless you face such
|
||||
# issues.
|
||||
TYPECLASS_AGGRESSIVE_CACHE = True
|
||||
|
||||
######################################################################
|
||||
# Batch processors
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue