Reproduction
This bug is a bit hard to reproduce without setting up an entire new site with API access, because I can’t try it out on my client’s live site.
Behaviour
The site has a collection list that only lists the latest press release, from a collection of multiple press releases. The collection list in question is limited to 1 item and sorted Newest to Oldest. When publishing to the collection via the API, the collection list on the homepage (the left box all the way on the bottom of the page) does not show the latest collection item. However, when going to IR->Press Releases, where all items from the same collection are displayed, it sits there at the top.
The only way to make the collection list on the first page to update is to make a dummy change to some part of the site and then publish it.
I’m adding the item with a { live: true }, which makes it show up in all expected places on the live site, except for the one one the start page. Is there a difference between setting it as live and calling a publish command on the API?
What I recommend you to do is make the your server-side code (that updates the CMS item ) run asynchronously. Whenever the update is done, call the endpoint that publishes your website afterwards.
You should test it out since it’s a fairly simple adjustment. Let me know how it goes
I’ve actually run into an issue related to that before, where we had different versions of the site on two different domains. However, the issue I’m describing is that every instance of the collection list is correct, except for one. Which leads me to think there is a bug on the other end, considering everything is published correctly on all other pages.
No problem at all my man! It’s always a pleasure! And heck yes, I love the full-stack! I’m no designer myself, so I better be versed with the development part of things!
I’m glad that I could be of help! Feel free to reach out at any time!