In my Node-Express app, I'm rendering two different EJS files one for desktop screen and the other for Mobile Devices and there is a Redis cache system.
When I turn off Redis on localhost I am able to reload the app and display the accurate EJS file for the required window width or device(mobile or desktop) but when I turn it on I am not able to display the required EJS template screens, and this happens even in prod.
Now I want to disable the Redis cache for the two EJS files, this will enable the auto-refresh and allow the accurate EJS file to be rendered. I tried turning of Redis, and when I did it works but I can't turn it off in prod.
what I want to do is: Block Redis from caching an EJS file in Nodejs
Any ideas or suggestions on how to do it ??
Thanks in advance for your help.