Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Caching statistics #9

Open
TheLastCicada opened this issue Jan 15, 2017 · 2 comments
Open

Caching statistics #9

TheLastCicada opened this issue Jan 15, 2017 · 2 comments

Comments

@TheLastCicada
Copy link

TheLastCicada commented Jan 15, 2017

I'd love to have a way to get some cache statistics out of wp-cli. Things I'm thinking of would be like

  • page cache hit rate
  • cache avg response time
  • cache eviction rate
  • % of cache used
  • % of cached items access over x number of minutes (I don't know any tool that does this currently....would be great data for sizing a memcached server. Could have this run for 10 minutes at the command line and collect data, then offer a report at the end. Will be tricky)
  • number of database queries saved by using caching

With the various object cache and advanced cache files out there this might be difficult to implement universally. Maybe it could be done for the most common caching plugins, or maybe we could build a framework that caching plugins can tie into with some simple integration code. Or this might be nearly impossible, but it'd be cool if we could do it.

@danielbachhuber
Copy link
Member

I'd love to have a way to get some cache statistics out of wp-cli.

To clarify, would this be cache statistics from web PHP processes? If so, how would WP-CLI get access to that data?

See also https://github.com/wp-cli/profile-command, specifically:

@TheLastCicada
Copy link
Author

Mostly I'm thinking of the use case of memcached, but it could be applicable to other cache backends too. Some of these stats can be pulled directly from Memcached and some would need to be monitored over time. Not thinking of it specifically for web PHP processes, but more from an overall cache health perspective. wp-cli/profile-command#128 is a great idea and along the lines of what I was thinking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants