The cache counter in the CBD dialog (chrome://settings/clearBrowserData) currently only counts the total size of the cache. This means that we show the correct value if the user chooses to delete "everything", but only a partial value if they choose a finite time range, such as "past hour".
This is because adding a time-range-based counting mechanism to the cache backend was not supported as it could potentially take a long time.
However, the counter can still be improved. We could run another calculation task in parallel, this time using the public cache interface (i.e. the iterator) to calculate the size of items in the given range. In cases where the cache is small and the parallel calculation finishes quickly enough, we will be able to show the precise value. Where this is not the case, we would simply show the upper estimate, as we do today.
Comment 1 by jj4777...@gmail.com
, Dec 5 201648 bytes
48 bytes Download