directus / gatsby-source-directus

Source plugin for pulling data into Gatsby from a Directus API.
11 stars 12 forks source link

Handle concurrency on download images, only store node id in cache #13

Closed maylukas closed 2 years ago

maylukas commented 2 years ago

Awaiting creation of remote file nodes instead of returning after looping over them. Otherwise the creation of the remote file nodes might not be finished upon retrieving the data from the resolver.

Also, only store the node id in the cache & touch it to prevent garbage collection.