About cache of data
Unanswered
Wetterhoun posted this in #help-forum
WetterhounOP
Hello,
I am creating an website in which i am using prisma & mongodb.
In navbar and footer website name is not hard coded it will be saved in mongodb so client can change according to their need as i am creating admin panel also for setting website name.
Problem is i want some type of cache as website name with some configs will be remain same after initial setup so in every page request it will fetch from cache with no time and work nearly close to hard coded values.
Thanks
I am creating an website in which i am using prisma & mongodb.
In navbar and footer website name is not hard coded it will be saved in mongodb so client can change according to their need as i am creating admin panel also for setting website name.
Problem is i want some type of cache as website name with some configs will be remain same after initial setup so in every page request it will fetch from cache with no time and work nearly close to hard coded values.
Thanks
3 Replies
why not just hard code it?
is the website name changing?
where do you get the config data? is it fetchable with fetch()?