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
Hi @djain_007
Are you self hosting Novu?
Yes i am running the project locally
it can be cache issue
Can you please try this command in your terminal
I have not enabled cache service
@djain_007, you just advanced to level 2!
I tried the issue still persist
I verified with the jobs table
both the jobs have the same content (template-> content)
how you are disabling cache?
because we have must requirement of cache
[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
Yes, this is a bug.
This happens sometime in local machine
Will this hapen only in local machine you mean??
Yes, It happens sometime with me also
I didn't face this issue on cloud
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