Skip to content

Commit bc8aa71

Browse files
authored
Proxito: use cacheops for 2 more models (#10106)
`Organization` and `PlanFeature` weren't being cached by `cacheops` and they are used when serving documentation. By caching these, we will be caching all the models used when serving documentation, reducing the db hits and a also a litte the response time.
1 parent 2a4a3e3 commit bc8aa71

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

readthedocs/settings/base.py

+10
Original file line numberDiff line numberDiff line change
@@ -1055,4 +1055,14 @@ def DOCKER_LIMITS(self):
10551055
'ops': CACHEOPS_OPS,
10561056
'timeout': CACHEOPS_TIMEOUT,
10571057
},
1058+
1059+
# readthedocs.organizations.*
1060+
'organizations.organization': {
1061+
'ops': CACHEOPS_OPS,
1062+
'timeout': CACHEOPS_TIMEOUT,
1063+
},
1064+
'organizations.planfeature': {
1065+
'ops': CACHEOPS_OPS,
1066+
'timeout': CACHEOPS_TIMEOUT,
1067+
},
10581068
}

0 commit comments

Comments
 (0)