2

Invalidate cache on filterlist refresh

  • Complete

P
Peter Bin

I would like to see the cache get invalidated when the filters get refreshed.
Steps to reproduce:
1. Query `example.domain` and get a valid response
2. Add `example.domain` to custom blocklist.
3. Query `example.domain` and still get the same response of step 1 (valid answer)
4. Wait till cache TTL expired/kill server and query again: `example.domain` is blocked.
Expected result: `example.domain` shouldn't be resolveable immediately after filter refresh, even if it was cached just before.

A

Activity Newest / Oldest

A

Anonymous


P

Peter Bin

This also resolves the issue when `example.domain` is listed on a blocklist, gets cached and then gets added to the allowlist. It will only resolve when the cache has expired.