delete obsolete children for tested urls instead of recursive clearing of the nodes along the paths of tested urls. This speeds up the cache.update() and fixes the following problem. Suppose the server had 'foo.bar.baz' ad filter url. The client pulled this url via 'foo.bar.baz/anything_here'. Then the url has been removed from the server. The client then encountered urls, which begin with the 'foo.bar', but end with any suffix other than the '.baz'. In this case the 'foo.bar.baz' ad filter, which is cached on the client, won't be deleted until the client encounters url, which starts exactly with the 'foo.bar.baz'.
delete obsolete children for tested urls instead of recursive clearing of the nodes along the paths of tested urls. This speeds up the cache.update() and fixes the following problem. Suppose the server had 'foo.bar.baz' ad filter url. The client pulled this url via 'foo.bar.baz/anything_here'. Then the url has been removed from the server. The client then encountered urls, which begin with the 'foo.bar', but end with any suffix other than the '.baz'. In this case the 'foo.bar.baz' ad filter, which is cached on the client, won't be deleted until the client encounters url, which starts exactly with the 'foo.bar.baz'.
valyala/ad-ban-extensions