The issue I am facing:
My Pi-hole has an excessive amount of Cached DNS Queries to the point where my pi-hole is not usable. I believe it is causing everything to either go excessively slow or not load at all.
Details about my system:
Raspberry Pi 4b
What I have changed since installing Pi-hole:
Upgraded from version 5 to 6.
Please upload a debug log and post just the token URL that is generated after the log is uploaded by running the following command from the Pi-hole host terminal:
These commands have no effect on your cache. What you have done is shrink the size of your query database. Very large databases (particularly those with some corrupted entries) cause performance problems in V6.
Shrinking the database eliminates this performance problem. The database will grown in size daily until you reach the duration limit, which is 91 days by default in V6. You have the option of changing this parameter. The previous default in V5 was 365. All else being equal, your new database will be about 25% the size of the previous database after the 91st day.
You query cache is maintained in memory. Queries enter the cache as they are generated. The length of time each entry remains in cache is tied to the TTL (time to live) of that domain. When the TTL expires, the cache naturally exits the cache.
The default cache size in Pi-hole is 10,000 entries, which is more than sufficient for almost all users. It is rare tha the cache size needs to be increased.