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 Jain2y ago
Hi @djain_007 Are you self hosting Novu?
djain#007
djain#007OP2y ago
Yes i am running the project locally
Pawan Jain
Pawan Jain2y 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#007OP2y ago
I have not enabled cache service
Novu_Bot
Novu_Bot2y ago
@djain_007, you just advanced to level 2!
djain#007
djain#007OP2y 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 Jain2y ago
how you are disabling cache? because we have must requirement of cache
djain#007
djain#007OP2y 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 Jain2y ago
Yes, this is a bug. This happens sometime in local machine
djain#007
djain#007OP2y ago
Will this hapen only in local machine you mean??
Pawan Jain
Pawan Jain2y ago
Yes, It happens sometime with me also I didn't face this issue on cloud
djain#007
djain#007OP2y 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
Want results from more Discord servers?
Add your server