1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-10-22 03:16:34 +00:00

Add nickname cache

This commit is contained in:
xiez
2012-08-14 13:18:55 +08:00
parent b9f2678220
commit c42381dc4c
5 changed files with 49 additions and 13 deletions

4
profile/settings.py Normal file
View File

@@ -0,0 +1,4 @@
from django.conf import settings
NICKNAME_CACHE_TIMEOUT = getattr(settings, 'NICKNAME_CACHE_TIMEOUT', 24 * 60 * 60)
NICKNAME_CACHE_PREFIX = getattr(settings, 'NICKNAME_CACHE_PREFIX', 'NICKNAME_')