t3n / neos-debug

Adds a debug panel to your Neos CMS website
MIT License
30 stars 16 forks source link

Cache hit / miss math #128

Open daniellienert opened 3 years ago

daniellienert commented 3 years ago

The cache hit / miss sums are wrong most of the times.

Example:

image

Sebobo commented 3 years ago

Yes, for the absolute sum we should use the information from the individual blocks. I fixed some bugs there recently and they should be correct now.

The current numbers are generated from the calls and results of replaceCachePlaceholders and getCachedSegment. The question is whether it's correct that we have less cache calls than cached segments or not and if it's correct we also have to show those numbers. Did you dig deeper into that already?