Skip to content

Commit

Permalink
Pull request 1913: parental-cache-size
Browse files Browse the repository at this point in the history
Squashed commit of the following:

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

    home: fix parental cache size
  • Loading branch information
ainar-g committed Jul 10, 2023
1 parent c02a141 commit 61ed743
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]).

Expand Down
2 changes: 1 addition & 1 deletion internal/home/home.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}
Expand Down

0 comments on commit 61ed743

Please sign in to comment.