Parcourir la source

[fix] caching conflict

Laurent Peuch il y a 9 ans
Parent
commit
38a1163758
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      ffdnispdb/views.py

+ 1 - 1
ffdnispdb/views.py

@@ -448,7 +448,7 @@ def site_embed_js():
     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)
+        cache.set('site_embed_js_%s' % (l,), js_i18n, timeout=60 * 60)
     r = Response(js_i18n, headers={
         'Content-type': 'application/javascript',
         'Cache-control': 'private, max-age=3600'