Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add c.secure to the render and page cache keys.

  • Loading branch information...
commit 77fbe5ae583fb9a466a982cb68586e0522b86e6e 1 parent 5df8723
Max Goodman authored
Showing with 2 additions and 1 deletion.
  1. +1 −0  r2/r2/controllers/reddit_base.py
  2. +1 −1  r2/r2/lib/wrapped.pyx
View
1  r2/r2/controllers/reddit_base.py
@@ -525,6 +525,7 @@ def request_key(self):
c.lang,
c.content_langs,
request.host,
+ c.secure,
c.cname,
request.fullpath,
c.over18,
View
2  r2/r2/lib/wrapped.pyx
@@ -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]
Please sign in to comment.
Something went wrong with that request. Please try again.