Is it possible to disable logs?
jordanvector opened this issue · 2 comments
jordanvector commented
Is it possible to disable the cache logs similar to how the strapi-middleware-cache does it? strapi-middleware-cache has a logs parameter in the config object, does this plugin have such a feature?
jordanvector commented
Following instructions here https://strapi.io/blog/caching-in-strapi-with-rest-cache-plugin
Added logs: false does not seem to have any effect.
strategy: {
enableEtagSupport: true,
logs: false,
clearRelatedCache: true,
maxAge: 3600000,
contentTypes: [
"api::category.category",
"api::article.article",
"api::global.global",
"api::homepage.homepage",
],
},
jordanvector commented
My mistake, setting logs: false like above does indeed not print logs. I have an env variable DEBUG set without realizing it that was forcing the logs.