-
Notifications
You must be signed in to change notification settings - Fork 21
Certain pages are not built when data changes #50
Comments
@nboliver I have had some issues with changes in documents (content changes on a collection, for example) not pulling in to the builds while using this plugin. One temp fix for this is to go to your "deploys" tab in the Netlify dashboard, "trigger deploy" > "Clear cache and deploy site". This will scrap the cache saved by this plugin, and initiate a fresh build for you. Has worked for me in the interim until I can put together a decent issue with more context/examples of this occurring. |
Thanks @jaobrown. Clearing the cache via the UI works for that specific build but then the next one triggered by a data change / deploy hook does not publish the changed document. The @jlengstorf Any update / input here? Would love to keep using this plugin, but right now it's not usable, since we can't expect clients to monitor Netlify to see if a page built or not, and clear the cache if it didn't. |
We are having sort of the same problem. Using Forestry, the change in content starts a build, but the build is just a mirror of the cache, so no changes gets published and we are stuck ind the same cached version forever. We just migrated to Gatsby 3.0.4 (from 2.0) to see if this helped, but same story... 🤔 |
Small update here in hopes of some resolution - |
Second that, @nboliver, since Gatsby 3.0 has incremental builds as default, a cache plugin is even more important. In our case this plugin can save our site from hours of build time if @jlengstorf could get it to work or hint us in a direction, so we can contribute ❤️ |
hey, everyone! all this plugin does is copy the @sidharthachatterjee any chance the caching mechanisms changed in >=2.3.x? |
I did a little digging here and deployed the "Blog with Gatsby" project from https://www.sanity.io/create I installed the cache plugin, added the
does anyone have a reproduction of this issue for debugging? |
@nboliver we found an easy “fix” to this described here: gatsbyjs/gatsby#26520 (comment) Now, using a shell script doesn’t entirely take advantage of the incremental build feature, but does persists image handling and other time consuming stuff, so via this little “solution” we brought our build time down to 5 min from 18 min. And it took 10 min, so worth trying while we figure out a real solution. Good luck! |
@jlengstorf I’m afraid we cannot reference our site, since it’s a live costumer site. The plug-in also does what you replicated, but the problem is that the site doesn’t update the content. So the log seams fine but the site is no more in sync with what’s actually being build. Did you check to see, if the content on those three sites were being updated? Thanks for getting back btw 👍🏻 |
@jlengstorf Both the sites this is affecting are production sites so we can't share access publicly. Are there logs or perhaps a screen recording that we could create to help isolate the issue?
|
I did check to make sure it was updating the content. is the content that's not updating a custom field? is it all content, or only certain fields? without a reproduction it's really hard for me to determine where the issue is
if the pages are not logged in the list, then this plugin isn't the culprit. that's either Sanity not telling Gatsby that the pages have changed, or Gatsby not handling the change properly. this plugin can't touch the data coming in from Sanity or Gatsby's code that determines what pages to rebuild |
@jlengstorf That's great info, appreciate the response. |
Using
gatsby-source-sanity
some document types are not getting built by Netlify when the data changes. The build is triggered, but these specific pages don't show the new data. Using the same config & dataset while building locally does build the documents in question, so it's looking like this is a cache issue. This is also happening when some documents are unpublished in Sanity - a build is triggered, but the page is retained, even though the page-data.json is not.Is there a way to clean the gatsby cache on Netlify? Other suggestions on how to remedy this?
The text was updated successfully, but these errors were encountered: