From 61ed743748938f71f26b0969b22e9fdc23062ff5 Mon Sep 17 00:00:00 2001 From: Ainar Garipov Date: Mon, 10 Jul 2023 20:00:29 +0300 Subject: [PATCH] Pull request 1913: parental-cache-size Squashed commit of the following: commit 6e7dcf0c59c478869e65cb6945d8d262b9eb1879 Author: Ainar Garipov Date: Mon Jul 10 19:44:49 2023 +0300 home: fix parental cache size --- CHANGELOG.md | 1 + internal/home/home.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 83342942..493d4a76 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -66,6 +66,7 @@ In this release, the schema version has changed from 23 to 24. ### Fixed +- Incorrect setting of Parental Control cache size. - Excessive RAM and CPU consumption by Safe Browsing and Parental Control filters ([#5896]). diff --git a/internal/home/home.go b/internal/home/home.go index c8f218ec..bdc0f86c 100644 --- a/internal/home/home.go +++ b/internal/home/home.go @@ -470,7 +470,7 @@ func setupDNSFilteringConf(conf *filtering.Config) (err error) { ServiceName: pcService, TXTSuffix: pcTXTSuffix, CacheTime: cacheTime, - CacheSize: conf.SafeBrowsingCacheSize, + CacheSize: conf.ParentalCacheSize, }) conf.SafeSearchConf.CustomResolver = safeSearchResolver{}