From 77fbe5ae583fb9a466a982cb68586e0522b86e6e Mon Sep 17 00:00:00 2001 From: Max Goodman Date: Tue, 1 Nov 2011 16:22:02 -0700 Subject: [PATCH] Add c.secure to the render and page cache keys. --- r2/r2/controllers/reddit_base.py | 1 + r2/r2/lib/wrapped.pyx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/r2/r2/controllers/reddit_base.py b/r2/r2/controllers/reddit_base.py index abe1254aa..4b2bf0ad3 100644 --- a/r2/r2/controllers/reddit_base.py +++ b/r2/r2/controllers/reddit_base.py @@ -525,6 +525,7 @@ class MinimalController(BaseController): c.lang, c.content_langs, request.host, + c.secure, c.cname, request.fullpath, c.over18, diff --git a/r2/r2/lib/wrapped.pyx b/r2/r2/lib/wrapped.pyx index 91da50a30..3beacc2b8 100644 --- a/r2/r2/lib/wrapped.pyx +++ b/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]