diff --git a/gallery/models/album.py b/gallery/models/album.py index a4062fc..3b8b658 100644 --- a/gallery/models/album.py +++ b/gallery/models/album.py @@ -32,7 +32,7 @@ class Album(models.Model): if count is None: count = self.photos.count() - cache.set(key, count, 60 * 60 * 24) # Cache 24 h + cache.set(key, count, 60 * 10) # Cache 10 min return count