Cache enabled for 'expedition' pages

This commit is contained in:
Philip Sargent
2021-04-10 01:07:49 +01:00
parent 16a6e05849
commit 6dc54adec8
2 changed files with 40 additions and 7 deletions

View File

@@ -32,7 +32,11 @@ There are more subclasses define in models_caves.py models_survex.py etc.
# This variable is a dictionary holding gloablly visible indexes and cache functions.
# It is a Global Object, see https://python-patterns.guide/python/module-globals/
# troggle.models.TROG
TROG = {}
TROG = {
'pagecache' : {
'expedition' : {}
}
}
def get_process_memory():
usage=resource.getrusage(resource.RUSAGE_SELF)