Skip to content

Commit 9a38b27

Browse files
committed
Comment on cache
1 parent 6b57a26 commit 9a38b27

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

readthedocs/api/v2/views/footer_views.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,14 @@ def get_version_compare_data(project, base_version=None):
6666

6767
class FooterHTML(APIView):
6868

69-
"""Render and return footer markup."""
69+
"""
70+
Render and return footer markup.
71+
72+
.. note::
73+
74+
The methods `_get_project` and `_get_version`
75+
are called many times, so a basic cache is implemented.
76+
"""
7077

7178
http_method_names = ['get']
7279
permission_classes = [AllowAny]

0 commit comments

Comments
 (0)