Caching /revalidating time isn't working
Unanswered
Manx posted this in #help-forum
ManxOP
After running the build i am unable to do the caching with a timeout(first image code not working).the code in second and third image(in api) it does revalidates the path but it purges the cache . how do i use caching with timeout?
in simple terms I need to cache or revalidate the data for db but with a timeout.
in simple terms I need to cache or revalidate the data for db but with a timeout.
4 Replies
useEffect is client side.
fetch revalidation is in app dir
fetch client side requires full url.
@DirtyCajunRice | AppDir fetch client side requires full url.
ManxOP
i don't have any problems in fetching (just the revalidation time isn't working).Also tried using full url it ain't workin.