- Issue created by @qzmenko
- 🇩🇪Germany jurgenhaas Gottmadingen
This is a good point, thanks for bringing this up @qzmenko. However, let me express some concerns too, and why we've originally implemented the way it is now: the domain data is a static copy of important information from a remote site. And it doesn't update itself automatically, it requires the
drd:info
action to be executed. If that's not done regularly, the domain data will be outdated.Wrong data is worse than no data!
As you already stated, users do rely on the data they see in DRD. That's why we need to find a fine balance for how long we keep the collected data from remote vs. performance to not collect the data from remote too often.
That's why we used the cache backend for storage so that the data is kept there for a fairly short period of time.
As an alternative solution to the original proposal, how about implementing a configurable cache life-time for the domain data with a default of what we currently have. And in addition to that, if anything wants to access domain data which is either not present or outdated, DRD could execute
drd:info
automatically, to then collect the remote data as needed. - 🇮🇳India zeshan.ziya
Yes @jurgenhaas, Implementing the use of a configurable cache lifetime seems to be a worthwhile consideration. Furthermore, I'd like to propose the inclusion of a timestamp that displays the data's last retrieval time. This enhancement would provide users with insight into the recency of the present data.