Currently, in case of a hugehigh number of visits for an origin, this makes the page
querying thate result crash (when the cache is initially empty,ith an empty cache). andNote that even with a populated cache,
cache, thatthe current version could take some time)e to process.
With thisThe following diff, instead of iterating over all origin visits, this uses simpler storage opens a function which uses simpler storage api calls to retrieve the
api calls to retrieve the most recent visit (and themost recent visit from a given point in time (with its most recent associated visit
status) instead of filtering all visits of an origin to retrieve the information. This also Hence
no longer reliesying on the cache of all visits for that origin either.
Related to T3905