Create slowpages cache for some very stable pages
- Legacy-Id: 17843
This commit is contained in:
parent
a44a80b068
commit
f7886df212
|
@ -251,7 +251,7 @@ def wg_summary_acronym(request, group_type):
|
|||
'groups': groups },
|
||||
content_type='text/plain; charset=UTF-8')
|
||||
|
||||
@cache_page ( 60 * 60 )
|
||||
@cache_page ( 60 * 60, cache="slowpages" )
|
||||
def wg_charters(request, group_type):
|
||||
if group_type != "wg":
|
||||
raise Http404
|
||||
|
@ -268,7 +268,7 @@ def wg_charters(request, group_type):
|
|||
{ 'areas': areas },
|
||||
content_type='text/plain; charset=UTF-8')
|
||||
|
||||
@cache_page ( 60 * 60 )
|
||||
@cache_page ( 60 * 60, cache="slowpages" )
|
||||
def wg_charters_by_acronym(request, group_type):
|
||||
if group_type != "wg":
|
||||
raise Http404
|
||||
|
|
|
@ -715,6 +715,13 @@ CACHES = {
|
|||
'MAX_ENTRIES': 100000, # 100,000
|
||||
},
|
||||
},
|
||||
'slowpages': {
|
||||
'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache',
|
||||
'LOCATION': '/a/cache/datatracker/slowpages',
|
||||
'OPTIONS': {
|
||||
'MAX_ENTRIES': 5000,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
HTMLIZER_VERSION = 1
|
||||
|
@ -1137,7 +1144,15 @@ if SERVER_MODE != 'production':
|
|||
'OPTIONS': {
|
||||
'MAX_ENTRIES': 1000,
|
||||
},
|
||||
}
|
||||
},
|
||||
'slowpages': {
|
||||
'BACKEND': 'django.core.cache.backends.dummy.DummyCache',
|
||||
#'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache',
|
||||
'LOCATION': '/var/cache/datatracker/',
|
||||
'OPTIONS': {
|
||||
'MAX_ENTRIES': 5000,
|
||||
},
|
||||
},
|
||||
}
|
||||
SESSION_ENGINE = "django.contrib.sessions.backends.db"
|
||||
|
||||
|
|
|
@ -35,6 +35,14 @@ CACHES = {
|
|||
'MAX_ENTRIES': 100000,
|
||||
},
|
||||
},
|
||||
'slowpages': {
|
||||
'BACKEND': 'django.core.cache.backends.dummy.DummyCache',
|
||||
#'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache',
|
||||
'LOCATION': '/var/cache/datatracker/slowpages',
|
||||
'OPTIONS': {
|
||||
'MAX_ENTRIES': 5000,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
PASSWORD_HASHERS = [ 'django.contrib.auth.hashers.MD5PasswordHasher', ]
|
||||
|
|
Loading…
Reference in a new issue