Corrected cache key format
authorThierry Florac <thierry.florac@onf.fr>
Thu, 28 Jun 2018 12:50:07 +0200
changeset 780 0e7088a263bc
parent 779 3b7fdd1ef715
child 781 1f85e32a52c4
Corrected cache key format
src/pyams_content/shared/view/__init__.py
--- a/src/pyams_content/shared/view/__init__.py	Thu Jun 28 12:13:19 2018 +0200
+++ b/src/pyams_content/shared/view/__init__.py	Thu Jun 28 12:50:07 2018 +0200
@@ -92,7 +92,7 @@
             cache_key = VIEW_CONTEXT_CACHE_KEY.format(view=ICacheKeyValue(self),
                                                       context=ICacheKeyValue(context))
         else:
-            cache_key = VIEW_CACHE_KEY.format(ICacheKeyValue(self))
+            cache_key = VIEW_CACHE_KEY.format(view=ICacheKeyValue(self))
         try:
             results = views_cache.get_value(cache_key)
         except KeyError: