We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98a7ff1 commit a8282f5Copy full SHA for a8282f5
readthedocs/api/v2/views/footer_views.py
@@ -18,7 +18,6 @@
18
parse_version_failsafe,
19
)
20
21
-
22
def get_version_compare_data(project, base_version=None):
23
"""
24
Retrieve metadata about the highest version available for this project.
readthedocs/settings/base.py
@@ -267,6 +267,10 @@ def USE_PROMOS(self): # noqa
267
'default': {
268
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
269
'PREFIX': 'docs',
270
+ },
271
+ 'footer': {
272
+ 'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache',
273
+ 'LOCATION': os.path.join(SITE_ROOT, 'readthedocs', 'api/v2/templates/restapi/footer.html' )
274
}
275
276
CACHE_MIDDLEWARE_SECONDS = 60
0 commit comments