From: Michael Tremer Date: Fri, 27 Feb 2026 13:42:51 +0000 (+0000) Subject: lists: Don't optimize the list if not necessary X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5ef8ef4c9ac874bfbe386c513f342885e836ea15;p=dbl.git lists: Don't optimize the list if not necessary Signed-off-by: Michael Tremer --- diff --git a/src/dbl/lists.py b/src/dbl/lists.py index 38a919e..0186dd1 100644 --- a/src/dbl/lists.py +++ b/src/dbl/lists.py @@ -784,6 +784,11 @@ class List(sqlmodel.SQLModel, database.BackendMixin, table=True): """ Optimizes this list """ + # Don't optimize if the list has not been changed + if self.updated_at <= self.optimized_at: + log.debug("%s does not require optimization..." % self) + return + log.info("Optimizing %s..." % self) # Fetch all whitelisted domains