Commits

Kai Diefenbach committed 48979e2

Clear cache after changing portlets

  • Participants
  • Parent commits e89386e

Comments (0)

Files changed (1)

lfc/manage/views.py

                 cls = LazyEncoder
             )
 
+            lfc.utils.clear_cache()
+
             return HttpResponse(result)
 
         except ContentType.DoesNotExist:
         pass
     else:
         pa.delete()
+        lfc.utils.clear_cache()
         url = request.META.get("HTTP_REFERER")
         msg = _(u"Portlet has been deleted.")
         return MessageHttpResponseRedirect(url, msg)
         pa.slot_id = request.POST.get("slot")
         pa.position = request.POST.get("position")
         pa.save()
+        lfc.utils.clear_cache()
 
         html = portlets_inline(request, pa.content)