Replies: 1 comment
-
If we add something like this, we will need to update the cache storage to update the counter. You can store the count of hits by the cache key and the current extensions on your own. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to have dashboards showing cache hit % for response cache, alerts for sudden drops in caching, etc. So how do I inject this telemetry? So far I hacked it like this:
I.e., I am gluing on an extra part to the plugin, getting Yoga to spit out the required info, and then deleting it. Creative right?
WDYT, should I keep doing it like this or ask for a feature request to get a better solution? For instance, event emitters:
.on('response-cache/hit')
etc.What I hate about this is that I am potentially replacing
onResultProcess
, ifuseYogaResponseCache
ever want to use that.Beta Was this translation helpful? Give feedback.
All reactions