Skip to content

graph.keys.wasted is not actually the value of wasted keys #98

Description

@StoneISStephan

'value' => $stats['num_cached_keys'] - $stats['num_cached_scripts'],

From what I understand, the difference between num_cached_keys and num_cached_scripts does not equal the amount of wasted keys.
OPcache Keys are all the relative and absolute paths leading to a script.
So there are naturally more Keys than there are Scripts, the difference here however is not the amount of wasted keys.

https://image.slidesharecdn.com/yoopeecacheopcacheinternals-140222091502-phpapp02/95/yoopee-cache-op-cache-internals-45-638.jpg?cb=1445541473
https://www.slideshare.net/jpauli/yoopee-cache-op-cache-internals

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions