Hi!
I’m kinda struggling trying to implement cache into my GraphQL queries at server-side.
Right now when we go past 50-100 visitors at the same time, the node server starts struggling handling the GraphQL queries making the website really really slow.
I think what we need is some kind of server-cache for our GraphQL queries, and like a max age of 6 days to refresh or so.
The thing is, we have quite a rare custom implementation (we use strapi for the backend but the website is fully php, we make GraphQL queries through Guzzle plugin, so we’re not using an Apollo client).
I’ve seen Guzzle middleware caches but isn’t this only client based? won’t this still require to query the db for the first time queries of a client? Maybe I got this wrong, but I think what we need is our queries pre-cached on server side…
Ideal scenario: user queries graphql > if it doesn’t find it cached, executes query and server stores cached result // if it finds it cached > result is provided (not querying the bbdd)
Is it possible to configure the strapi graphql server to do this, and not using Apollo clients?
Thanks!