-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Revalidation of Shopify pages? #1223
Comments
@zenzen-sol I also ran into this issue the other day as well - hoping someone else can chime into this discussion to help solve this. This is definitely not the best solution, but this was the workaround I found for now.
Again, this is not the best, but it is a temp work around dancing between saving pages and updating products. |
Update and simpler solution based on #1009: This worked for me after saving a change on a Shopify page, waiting a couple seconds, and then refreshing the served page.
|
Won't this break the cache for all fetches? I prefer to keep the cache for products & collections, since I can manage via webhooks. Ideally, I would like to set a short time-based revalidation period on the route—e.g., via |
That's true, it would break the cache and fetch new data each call. This might be related to more general App Router issue? Here's just one of the threads I found related to this: vercel/next.js#49417 |
Addressing this here: #1236
|
The integration guide shows an example using Shopify's "pages" feature to manage content for dynamic pages.
However—unlike collections and products—Shopify does not provide a webhook event for on-demand revalidation when page content updates are saved. We've noticed that pages content is not being updated, even if we adjust time-based revalidation down to, e.g.,
export const revalidate = 300
.Is there a recommended approach to force revalidation of pages and other non-product/collection content?
The text was updated successfully, but these errors were encountered: