profile-command
profile-command copied to clipboard
Introduce `wp profile cache`
We can overload the $wp_object_cache global with our own object in order to monitor which cache keys are being fetched and written.
We could also introduce a --cache flag or similar to wp profile eval-file for the user to see all of the cache keys being hit in a given profile. In this example, it would be helpful to know why the cache usage is so high.