I had neglected to update the Netlify functions that relied on the previous format of all members in one static file. Changed to use glob to import all files into the members array instead. Sorting this array by the same date-based sorting method used on the site.
While this is working in my local tests, I'm not familiar enough with how Netlify caches the data in these functions so I can't tell if the members list is generated once on build or if it happens on each request. Running locally, going to any of the next, prevous, or random links redirects me almost instantly but that's not indicative of live performance. Possible to verify?
I had neglected to update the Netlify functions that relied on the previous format of all members in one static file. Changed to use
glob
to import all files into the members array instead. Sorting this array by the same date-based sorting method used on the site.While this is working in my local tests, I'm not familiar enough with how Netlify caches the data in these functions so I can't tell if the
members
list is generated once on build or if it happens on each request. Running locally, going to any of thenext
,prevous
, orrandom
links redirects me almost instantly but that's not indicative of live performance. Possible to verify?