N
Novu12mo ago
djain#007

Issue with template

I created a workflow and added sms step in it . It works fine but when I change the content of sms , novu is picking old message content only . The problem gets resolved after deploying it again. Looks like a bug in update template flow. #bug @Support
12 Replies
Pawan Jain
Pawan Jain12mo ago
Hi @djain_007 Are you self hosting Novu?
djain#007
djain#00712mo ago
Yes i am running the project locally
Pawan Jain
Pawan Jain12mo ago
it can be cache issue Can you please try this command in your terminal
redis-cli FLUSHALL ASYNC
redis-cli FLUSHALL ASYNC
djain#007
djain#00712mo ago
I have not enabled cache service
Novu_Bot
Novu_Bot12mo ago
@djain_007, you just advanced to level 2!
djain#007
djain#00712mo ago
I tried the issue still persist I verified with the jobs table both the jobs have the same content (template-> content)
Pawan Jain
Pawan Jain12mo ago
how you are disabling cache? because we have must requirement of cache
djain#007
djain#00712mo ago
[08:04:21.739] INFO (68329): Cache service is not enabled yup its working fine after using this command redis-cli FLUSHALL ASYNC is it a bug ? I have to clear cache everytime I do some update in template message content ?? @Pawan Jain
Pawan Jain
Pawan Jain12mo ago
Yes, this is a bug. This happens sometime in local machine
djain#007
djain#00712mo ago
Will this hapen only in local machine you mean??
Pawan Jain
Pawan Jain12mo ago
Yes, It happens sometime with me also I didn't face this issue on cloud
djain#007
djain#00712mo ago
cool thank you @Pawan Jain I have a doubt why will this not happen in cloud ? I can see while fetching template from notificationTemplate repository you are using caching . will the performance be affected if caching is disabled while fetching template?? @Support Got it ! while fetching you are reading cache but when you update the template you are checking if cache service is enabled , if enabled then only you are deleting the old key