Browse Source

[fix] don't use same cache entry for different files

Laurent Peuch 9 years ago
parent
commit
53015260e2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ffdnispdb/views.py

+ 1 - 1
ffdnispdb/views.py

@@ -444,7 +444,7 @@ def site_js():
 @ispdb.route('/site_embed.js', methods=['GET'])
 def site_embed_js():
     l = get_locale()
-    js_i18n = cache.get('site_js_%s' % (l,))
+    js_i18n = cache.get('site_embed_js_%s' % (l,))
     if not js_i18n:
         js_i18n = render_template('site_embed.js')
         cache.set('site_js_%s' % (l,), js_i18n, timeout=60 * 60)