v.25.12Improvement

Update for merges as well, this PR

Refine mark cache metrics to track only queries (after #83415 MarkCacheHits/MarkCacheMisses was updated for merges as well, this PR will revert this behavior back). #91910 (Azat Khuzhin).
Refine the accuracy of MarkCacheHits and MarkCacheMisses metrics by restricting them to track only query-related cache accesses.

Why it matters

This feature addresses an issue where MarkCacheHits and MarkCacheMisses metrics were incorrectly increased during merge operations, which skewed cache usage statistics. By limiting these metrics to count only query activity, it provides users with more precise insights into cache performance relevant to query execution.

How to use it

The refinement is applied internally and requires no user intervention. These metrics will automatically reflect query-only cache hits and misses after updating to the version including this change.