Closed httaq closed 12 months ago
This might be misleading if we change the schema but don't actually update data. by storing in the db we can control the true date but still automate it. @Mattwmaster58 any thoughts?
Ah my bad I assumed the feature was for tracking every update to the site and not just the data.
no worries I guess the caption can be a little more clear that it's the date last scraped
Kinda on topic ideally we keep track of the oldest cached file we've seen to give the most accurate "last updated" figure. Since that's requires some effort when using multiple processes to communicate between them, I instead use the lower bound for what last updated might be based on the cache TTL. So if TTL is 3 days and today is Nov 19, last updated will be set to Nov 16. So there is room for improvement there I just haven't got around to it.
Get a Commit This should allow querying the last updated date for both the frontend and the backend without storing it in the database.