Skip to content

Commit

Permalink
[bug 1233001] Add client.channel in cache key.
Browse files Browse the repository at this point in the history
Since snippets_js changes based on client channel we need to add that
too in the cache key generation recipe. Once we complete MLS migration
and release switches too we can safely delete this code.
  • Loading branch information
glogiotatidis committed Dec 18, 2015
1 parent b720e7c commit 227ca1e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions snippets/base/models.py
Expand Up @@ -139,6 +139,7 @@ def key(self):
key_properties.extend([
self.client.startpage_version,
self.client.locale,
self.client.channel,
SNIPPET_JS_TEMPLATE_HASH,
SNIPPET_CSS_TEMPLATE_HASH,
SNIPPET_FETCH_TEMPLATE_HASH,
Expand Down

0 comments on commit 227ca1e

Please sign in to comment.