diff --git a/packages/strapi-provider-rest-cache-redis/lib/index.js b/packages/strapi-provider-rest-cache-redis/lib/index.js index 466abbdb2..afafc01b9 100644 --- a/packages/strapi-provider-rest-cache-redis/lib/index.js +++ b/packages/strapi-provider-rest-cache-redis/lib/index.js @@ -23,6 +23,10 @@ function waitForRedis(client) { ); }; + if (client.status === "ready") { + return onReady(); + } + client.once("ready", onReady); client.once("error", onError); });