You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have pages which are set to expire after 5 minutes. These are product detail pages, with pricing on them. Pricing changes regularly, but we need it to stay updated every 5 minutes.
What is happening though, is we are seeing the product detail showing with hours old pricing on it - and that is because after the revalidate time passes, it does not automatically revalidate it in the background - it waits for the next request to come in (and this next request, shows the old cached data - old price).
Is there any kind of background process we can implement which will automatically revalidate pages when the time passes - instead of waiting on additional requests?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Summary
We have pages which are set to expire after 5 minutes. These are product detail pages, with pricing on them. Pricing changes regularly, but we need it to stay updated every 5 minutes.
What is happening though, is we are seeing the product detail showing with hours old pricing on it - and that is because after the revalidate time passes, it does not automatically revalidate it in the background - it waits for the next request to come in (and this next request, shows the old cached data - old price).
Is there any kind of background process we can implement which will automatically revalidate pages when the time passes - instead of waiting on additional requests?
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions