Skip unnecessary data syncs by checking if a subpage's updated_at timestamp is less than 24 hours old. If it is, fetch new data and update the file. If not, skip the sync and save resources.
Chapters
if the updated_at date for marketing in this case, or for whatever subpages you are checking, is within the last 24 hours, meaning after the last check ran, you know there is new data, there's new stuff in there. If that's not the case, you don't need to waste the resources and now sync data that is still exactly the same. But if within the last 24 hours, let's say IG was updated, if it was updated within the last 24 hours, and you see that based on updatedAt, what date and time that is, and the automation layer checks that automatically, obviously. It, it basically comes back as that, so it requests that, comes back last 24 hours, and then it pretty much continues from there and now updates that file in your repo.