Skip to content

Commit 65c6a87

Browse files
committed
Merged in [17843] from housley@vigilsec.com:
Create slowpages cache for some very stable pages - Legacy-Id: 17874 Note: SVN reference [17843] has been migrated to Git commit f7886df
2 parents a3979c3 + f7886df commit 65c6a87

3 files changed

Lines changed: 26 additions & 3 deletions

File tree

ietf/group/views.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ def wg_summary_acronym(request, group_type):
251251
'groups': groups },
252252
content_type='text/plain; charset=UTF-8')
253253

254-
@cache_page ( 60 * 60 )
254+
@cache_page ( 60 * 60, cache="slowpages" )
255255
def wg_charters(request, group_type):
256256
if group_type != "wg":
257257
raise Http404
@@ -268,7 +268,7 @@ def wg_charters(request, group_type):
268268
{ 'areas': areas },
269269
content_type='text/plain; charset=UTF-8')
270270

271-
@cache_page ( 60 * 60 )
271+
@cache_page ( 60 * 60, cache="slowpages" )
272272
def wg_charters_by_acronym(request, group_type):
273273
if group_type != "wg":
274274
raise Http404

ietf/settings.py

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -697,6 +697,13 @@ def skip_unreadable_post(record):
697697
'MAX_ENTRIES': 100000, # 100,000
698698
},
699699
},
700+
'slowpages': {
701+
'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache',
702+
'LOCATION': '/a/cache/datatracker/slowpages',
703+
'OPTIONS': {
704+
'MAX_ENTRIES': 5000,
705+
},
706+
},
700707
}
701708

702709
HTMLIZER_VERSION = 1
@@ -1118,7 +1125,15 @@ def skip_unreadable_post(record):
11181125
'OPTIONS': {
11191126
'MAX_ENTRIES': 1000,
11201127
},
1121-
}
1128+
},
1129+
'slowpages': {
1130+
'BACKEND': 'django.core.cache.backends.dummy.DummyCache',
1131+
#'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache',
1132+
'LOCATION': '/var/cache/datatracker/',
1133+
'OPTIONS': {
1134+
'MAX_ENTRIES': 5000,
1135+
},
1136+
},
11221137
}
11231138
SESSION_ENGINE = "django.contrib.sessions.backends.db"
11241139

ietf/settings_testcrawl.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,14 @@
3535
'MAX_ENTRIES': 100000,
3636
},
3737
},
38+
'slowpages': {
39+
'BACKEND': 'django.core.cache.backends.dummy.DummyCache',
40+
#'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache',
41+
'LOCATION': '/var/cache/datatracker/slowpages',
42+
'OPTIONS': {
43+
'MAX_ENTRIES': 5000,
44+
},
45+
},
3846
}
3947

4048
PASSWORD_HASHERS = [ 'django.contrib.auth.hashers.MD5PasswordHasher', ]

0 commit comments

Comments
 (0)