-
Notifications
You must be signed in to change notification settings - Fork 53
Single type has many relation data update doesn't bust the cache #65
Comments
Hi @lukawski Have you tried setting the From the readme
|
Hi @patrixr. Yes, I do have cache: {
type: 'redis',
enabled: true,
clearRelatedCache: true,
populateStrapiMiddleware: true,
models: [
{
model: 'global',
singleType: true,
},
'category',
],
redisConfig: {
host: process.env.REDIS_HOST,
port: process.env.REDIS_PORT,
},
}, And here a the versions of Strapi and cache middleware
I also took a dive into middleware code and I see that |
Hello! |
Hi @stafyniaksacha, yes, I will, I wanted to wait with it till we have more time on a project but it might be a good idea to do it right now. I will get back to you when I do! |
@stafyniaksacha so after the update same behavior occurs. When I do update an entry in categories collection cache for the global model is not cleared. |
Hello, thanks for this great package! I noticed that if I have a single type model with
hasMany
relation, updating data in the related model doesn't bust this single model cache.That's how my relation looks like.
I wonder, is there any way to make it work? Or it would require changes in the middleware code itself?
The text was updated successfully, but these errors were encountered: