Optimistic cache id on cold miss #305
jasonmarlin
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I don't know if it's helpful for anyone else, but my architecture is such that it's useful for me to get the eventual object cache id on a first cold miss. Then my frontend app can hit the cache directly without bootstrapping WP.
I doubt it would be super useful as a core feature since I'm betting on the key being set, but it took me some time to figure out, so thought I'd share how I got cacheId wired into the first cold miss:
And to @jasonbahl - just wow - I've been tinking w/wp-graphql and the ecosystem for a while and finally digging in on a project for the first time. What an incredible bit of work sir - well done!
Beta Was this translation helpful? Give feedback.
All reactions