File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -332,6 +332,7 @@ def skip_unreadable_post(record):
332332SESSION_SERIALIZER = 'django.contrib.sessions.serializers.PickleSerializer'
333333SESSION_ENGINE = "django.contrib.sessions.backends.cache"
334334SESSION_SAVE_EVERY_REQUEST = True
335+ SESSION_CACHE_ALIAS = 'sessions'
335336
336337PREFERENCES_COOKIE_AGE = 60 * 60 * 24 * 365 * 50 # Age of cookie, in seconds: 50 years
337338
@@ -722,6 +723,12 @@ def skip_unreadable_post(record):
722723 'VERSION' : __version__ ,
723724 'KEY_PREFIX' : 'ietf:dt' ,
724725 },
726+ 'sessions' : {
727+ 'BACKEND' : 'django.core.cache.backends.memcached.MemcachedCache' ,
728+ 'LOCATION' : '127.0.0.1:11211' ,
729+ # No release-specific VERSION setting.
730+ 'KEY_PREFIX' : 'ietf:dt' ,
731+ },
725732 'htmlized' : {
726733 'BACKEND' : 'django.core.cache.backends.filebased.FileBasedCache' ,
727734 'LOCATION' : '/a/cache/datatracker/htmlized' ,
@@ -1161,6 +1168,9 @@ def skip_unreadable_post(record):
11611168 'VERSION' : __version__ ,
11621169 'KEY_PREFIX' : 'ietf:dt' ,
11631170 },
1171+ 'sessions' : {
1172+ 'BACKEND' : 'django.core.cache.backends.locmem.LocMemCache' ,
1173+ },
11641174 'htmlized' : {
11651175 'BACKEND' : 'django.core.cache.backends.dummy.DummyCache' ,
11661176 #'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache',
Original file line number Diff line number Diff line change 2727 'MAX_ENTRIES' : 10000 ,
2828 },
2929 },
30+ 'sessions' : {
31+ 'BACKEND' : 'django.core.cache.backends.memcached.LocMemCache' ,
32+ # No version-specific VERSION setting.
33+ },
3034 'htmlized' : {
3135 'BACKEND' : 'django.core.cache.backends.dummy.DummyCache' ,
3236 #'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache',
You can’t perform that action at this time.
0 commit comments