From 4c6109a1d65973fa2c794a21fa72cb99ecb34b9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9DNyymix=E2=80=9D?= Date: Wed, 14 May 2025 21:56:05 +0300 Subject: [PATCH] Change cache duration --- gallery/models/album.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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