Comments (6)
Have you tried deleting the cache folder?
from gatsby-starter-gcn.
Many thanks for the information and tips.
10/10 would GitHub again.
from gatsby-starter-gcn.
Thanks @brandonkal - that seems to have done the trick!
I actually saw that as a potential fix for a similar issue on another project / rep, but a lot of people said it didn't work so I didn't bother trying it. That'll teach me...
Any idea why this may have happened? Any thoughts on how to prevent this from happening?
Wondering whether the cache can be deleted every time as part of the build process (or does this defeat the point of it in the first place?)...
from gatsby-starter-gcn.
The cache is useful for preventing unnecessary API calls to Contentful as usually changing posts or just adding more posts if more common. If you do delete content that has been built, deleting the cache is a nice way to avoid these problems.
from gatsby-starter-gcn.
OK thanks.
You've provided a solution, but I guess the root cause of the issue still exists. In this instance, would you close this issue on GitHub or leave it open for further investigation?
from gatsby-starter-gcn.
I would close the issue here as it is not related to the GCN starter project. This issue is related to the gatsby-source-contentful
package not invalidating the cache when content is deleted. This package is maintained by gatsby.
It looks like there is already an issue open for this, and you can add to the discussion here: gatsbyjs/gatsby#3495
from gatsby-starter-gcn.
Related Issues (20)
- First page is blank HOT 2
- Accessing your Contentful space failed. HOT 4
- Self hosted fonts HOT 1
- How do I remove these icons? HOT 2
- Filter posts just for certain tags HOT 1
- Quick question for difference between two methods HOT 1
- TypeError: Cannot read property 'allContentfulTag' of undefined HOT 6
- Page transition animation HOT 3
- What Solved JS Caching Issues With Safari #5231? HOT 2
- Deploy failed. failed during stage 'building site': Build script returned non-zero exit code: 1 HOT 2
- emotion instead of styled-components, but why? HOT 3
- what is query.js file for? HOT 2
- page nav dropdown bug HOT 2
- og:url bug HOT 1
- Download images locally without using contentful cdn HOT 1
- Proper installation HOT 3
- RSS Support HOT 1
- new fields added to post model HOT 5
- Changing body font styling for the entire site HOT 2
- Demo contents in contentful are still displaying on the website HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gatsby-starter-gcn.