From fc8e9b9b5115f87eeefece6be7d7d0415e824628 Mon Sep 17 00:00:00 2001 From: Alexandre Chataignon Date: Fri, 3 Mar 2017 04:55:02 +0100 Subject: [PATCH] Set @cached_property to avoid generating zip multiple times --- sigal/gallery.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sigal/gallery.py b/sigal/gallery.py index 3b30fb1..143b1ca 100644 --- a/sigal/gallery.py +++ b/sigal/gallery.py @@ -470,7 +470,7 @@ class Album(UnicodeMixin): """ return any(image.has_location() for image in self.images) - @property + @cached_property def zip(self): """Make a ZIP archive with all media files and return its path.