mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-26 15:28:37 -05:00
Add c.secure to the render and page cache keys.
This commit is contained in:
@@ -525,6 +525,7 @@ class MinimalController(BaseController):
|
||||
c.lang,
|
||||
c.content_langs,
|
||||
request.host,
|
||||
c.secure,
|
||||
c.cname,
|
||||
request.fullpath,
|
||||
c.over18,
|
||||
|
||||
@@ -456,7 +456,7 @@ class CachedTemplate(Templated):
|
||||
# a menu is just a set of links, so we best cache against
|
||||
# them.
|
||||
keys = [c.user_is_loggedin, c.user_is_admin, c.domain_prefix,
|
||||
style, c.cname, c.lang, c.site.path,
|
||||
style, c.secure, c.cname, c.lang, c.site.path,
|
||||
getattr(c.user, "gold", False),
|
||||
template_hash, g.markdown_backend]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user