Pull request 1913: parental-cache-size

Squashed commit of the following:

commit 6e7dcf0c59c478869e65cb6945d8d262b9eb1879
Author: Ainar Garipov <A.Garipov@AdGuard.COM>
Date:   Mon Jul 10 19:44:49 2023 +0300

    home: fix parental cache size
This commit is contained in:
Ainar Garipov 2023-07-10 20:00:29 +03:00
parent c02a14117d
commit 61ed743748
2 changed files with 2 additions and 1 deletions

View File

@ -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]).

View File

@ -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{}