Cache not working or UI Bug?

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:

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.

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?