Enhancement: Served from Optimistic cache information. #5069

Open
opened 2026-03-04 05:46:16 -05:00 by deekerman · 12 comments
Owner

Originally created by @cenk on GitHub (Feb 16, 2024).

Prerequisites

  • I have checked the Wiki and Discussions and found no answer

  • I have searched other issues and found no duplicates

  • I want to request a feature or enhancement and not ask a question

The problem

Is it possible to see "served from Optimistic Cache" information in the Response details page when the responses are served by the Optimistic Cache?

Proposed solution

Is it possible to see "served from Optimistic Cache" information in the Response details page when the responses are served by the Optimistic Cache?

Alternatives considered and additional information

No response

Originally created by @cenk on GitHub (Feb 16, 2024). ### Prerequisites - [X] I have checked the [Wiki](https://github.com/AdguardTeam/AdGuardHome/wiki) and [Discussions](https://github.com/AdguardTeam/AdGuardHome/discussions) and found no answer - [X] I have searched other issues and found no duplicates - [X] I want to request a feature or enhancement and not ask a question ### The problem Is it possible to see "served from Optimistic Cache" information in the Response details page when the responses are served by the Optimistic Cache? ### Proposed solution Is it possible to see "served from Optimistic Cache" information in the Response details page when the responses are served by the Optimistic Cache? ### Alternatives considered and additional information _No response_
Author
Owner

@ainar-g commented on GitHub (Feb 16, 2024):

As far as I know, that information isn't available in the libraries currently.

Can you elaborate on why you want to see this information? Unless there are custom cache configurations involved, all “served from cache” are served from the optimistic one.

@ainar-g commented on GitHub (Feb 16, 2024): As far as I know, that information isn't available in the libraries currently. Can you elaborate on why you want to see this information? Unless there are custom cache configurations involved, all “served from cache” are served from the optimistic one.
Author
Owner

@cenk commented on GitHub (Feb 16, 2024):

It would be very useful to be able to see this information without turning on verbose/debug mode. Just like "stale cache" information on the query page in "pi-hole".

@cenk commented on GitHub (Feb 16, 2024): It would be very useful to be able to see this information without turning on verbose/debug mode. Just like "stale cache" information on the query page in "pi-hole".
Author
Owner

@ainar-g commented on GitHub (Feb 16, 2024):

So basically, the data you'd like to see is the number of cache misses due to TTL expiration?

@ainar-g commented on GitHub (Feb 16, 2024): So basically, the data you'd like to see is the number of cache misses due to TTL expiration?
Author
Owner

@cenk commented on GitHub (Feb 16, 2024):

No. Just "Served from Optimistic cache" information istead of "served from cache" for each response.

Correction: in pi-hole v6 (beta) version.

@cenk commented on GitHub (Feb 16, 2024): No. Just "Served from Optimistic cache" information istead of "served from cache" for each response. Correction: in pi-hole v6 (beta) version.
Author
Owner

@ainar-g commented on GitHub (Feb 16, 2024):

I'm sorry, but in that case what you're asking makes little sense. There are no two separate common caches, there is only one that either has optimistic mode enabled or not.

@ainar-g commented on GitHub (Feb 16, 2024): I'm sorry, but in that case what you're asking makes little sense. There are no two separate common caches, there is only one that either has optimistic mode enabled or not.
Author
Owner

@cenk commented on GitHub (Feb 16, 2024):

Yes I know. There is only one cache. The name of the label may be different.
May be "Served from cache (Optimistic response)"
May be "Served from cache (Expired)"

@cenk commented on GitHub (Feb 16, 2024): Yes I know. There is only one cache. The name of the label may be different. May be "Served from cache (Optimistic response)" May be "Served from cache (Expired)"
Author
Owner

@yuxuan0107 commented on GitHub (Feb 25, 2024):

It would be better if you could provide a statistical display of the cache hit ratio

@yuxuan0107 commented on GitHub (Feb 25, 2024): It would be better if you could provide a statistical display of the cache hit ratio
Author
Owner

@yuxuan0107 commented on GitHub (Feb 25, 2024):

It would be better if you could provide a statistical display of the cache hit ratio如果可以提供缓存命中率的统计显示,那就更好了

Of course, if optimistic caching is enabled, the statistics of the cache hit ratio may be inaccurate, so two statistics may be required, one is used to statistically display the hit ratio of the cache, and the other is used to statistically display the accuracy of the cached data in the optimistic cache

@yuxuan0107 commented on GitHub (Feb 25, 2024): > It would be better if you could provide a statistical display of the cache hit ratio如果可以提供缓存命中率的统计显示,那就更好了 Of course, if optimistic caching is enabled, the statistics of the cache hit ratio may be inaccurate, so two statistics may be required, one is used to statistically display the hit ratio of the cache, and the other is used to statistically display the accuracy of the cached data in the optimistic cache
Author
Owner

@yuxuan0107 commented on GitHub (Feb 25, 2024):

It is also good if you can increase the current cache usage capacity or the current number of caches

@yuxuan0107 commented on GitHub (Feb 25, 2024): It is also good if you can increase the current cache usage capacity or the current number of caches
Author
Owner

@ainar-g commented on GitHub (Feb 27, 2024):

@yuxuan0107, cache statistics are a part of #1453. Please keep discussions on-topic.

@cenk, I'm still not getting the feature request, sorry. What is the problem you're trying to solve? You've mentioned some kind of information that you want to track, but what information? How would it be actionable?

@ainar-g commented on GitHub (Feb 27, 2024): @yuxuan0107, cache statistics are a part of #1453. Please keep discussions on-topic. @cenk, I'm still not getting the feature request, sorry. What is the problem you're trying to solve? You've mentioned some kind of information that you want to track, but what information? How would it be actionable?
Author
Owner

@cenk commented on GitHub (Feb 27, 2024):

@ainar-g, Can optimistic cache information be specified where I marked on this page? like "served from cache (optimistic response)"
IMG_20240227_174621

@cenk commented on GitHub (Feb 27, 2024): @ainar-g, Can optimistic cache information be specified where I marked on this page? like "served from cache (optimistic response)" ![IMG_20240227_174621](https://github.com/AdguardTeam/AdGuardHome/assets/391865/87f40cc6-53af-499e-97ac-57d154d15fa6)
Author
Owner

@AlexanderSalge commented on GitHub (Oct 23, 2024):

any update on this?

@AlexanderSalge commented on GitHub (Oct 23, 2024): any update on this?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/AdGuardHome#5069
No description provided.