diff --git a/packages/strapi-plugin-rest-cache/server/middlewares/purgeAdmin.js b/packages/strapi-plugin-rest-cache/server/middlewares/purgeAdmin.js index 483a4deed..5c2446194 100644 --- a/packages/strapi-plugin-rest-cache/server/middlewares/purgeAdmin.js +++ b/packages/strapi-plugin-rest-cache/server/middlewares/purgeAdmin.js @@ -29,7 +29,10 @@ function createPurgeAdmin(options, { strapi }) { if (!(ctx.status >= 200 && ctx.status <= 300)) return; - await cacheStore.clearByUid(uid, params); + await cacheStore.clearByUid(uid, { + ...params, + ...ctx.request.body, + }); }; }