# Cache not working or UI Bug?

**URL:** <https://discourse.pi-hole.net/t/cache-not-working-or-ui-bug/88140>\
**Category:** docker\
**Created:** [October 31, 2026, 5:15pm UTC](https://discourse.pi-hole.net/t/cache-not-working-or-ui-bug/88140 "2026-10-31T17:15:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hoerli1337](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/hoerli1337/32/54424_2.png) [@Hoerli1337](https://discourse.pi-hole.net/u/Hoerli1337)\
**Post date:** [October 31, 2026, 5:15pm UTC](https://discourse.pi-hole.net/t/cache-not-working-or-ui-bug/88140/1 "2026-10-31T17:15:52Z")

</div>

Hello Forum,

I have 3 Pi-Holes running on servers that receive their requests via nginx using DoT or DoH.  
I've noticed that, in very rare cases, DNS requests are answered from the cache.  
A large number of them are forwarded to the upstream servers.  
I’ve configured Quad9, Cloudflare, and others as upstream servers—no Unbound.

The three Pi-Holes are running in Docker containers.  
Here’s the Compose file I’m using:

```auto
services:
  pihole:
    container_name: pihole
    image: pihole/pihole:latest
    ports:
      - "30000:53/tcp"
      - "30000:53/udp"
# - "30001:67/udp"
      - "30002:80/tcp"
      - "30003:443/tcp"
    environment:
      TZ: 'Europe/Berlin'
      # WEBPASSWORD: 'set a secure password here or it will be random'
    # Volumes store your data between container upgrades
    volumes:
       - './etc-pihole/:/etc/pihole/'
# - './etc-dnsmasq.d/:/etc/dnsmasq.d/'
    dns:
# - 127.0.0.1
      - 9.9.9.9
      - 1.1.1.1
    # Recommended but not required (DHCP needs NET_ADMIN)
    # https://github.com/pi-hole/docker-pi-hole#note-on-capabilities
    cap_add:
      - NET_ADMIN
    restart: unless-stopped

```

When I send a query to one of the three Pi-Holes, it gets forwarded right away. That works as expected.  
If I make the same request again, it gets forwarded again, even though the cache should actually know the answer.  
I wrote a little Bash script that fires off 300 DNS requests at once.  
The cache is almost never used.  
Even when I run it once every 2 minutes.  
However, in the system stats, you can see that “Active cache records” goes up, and “Total cache insertions” does as well.

 ![grafik](https://discourse-cdn.pi-hole.net/uploads/default/original/3X/4/9/498728f6a5654c8b256a41abe15a58e9a3b73721.png)

If i set a static local dns record, the cache works and i see the icon for cache in the query log.

I have two other Pi-Holes on my home network, one running in an LXC container and the other directly on a Raspberry Pi.  
They work without any issues and use the cache much more often.  
All Pi-Holes use the same blocklists and allowlists.  
Blocking works fine too, only cache in the docker-holes not.

Is there a bug here?
