use django caching to hold computed metadata inheritence. Also invalidate the cache entries on writes (insert, updates)

This commit is contained in:
Chris Dodge
2013-03-13 15:33:15 -04:00
parent a1c375b499
commit 413aeed1b3
6 changed files with 78 additions and 30 deletions

View File

@@ -115,7 +115,14 @@ CACHES = {
'KEY_PREFIX': 'general',
'VERSION': 4,
'KEY_FUNCTION': 'util.memcache.safe_key',
}
},
'mongo_metadata_inheritance': {
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
'LOCATION': '/var/tmp/mongo_metadata_inheritance',
'TIMEOUT': 300,
'KEY_FUNCTION': 'util.memcache.safe_key',
}
}
# Dummy secret key for dev