don't recheck microsummaries when previous update failed until normal expiration

bug=342908
r=ben
This commit is contained in:
myk%mozilla.org 2006-07-05 20:23:57 +00:00
Родитель 71e59e0dda
Коммит f2f3f66af3
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -263,6 +263,11 @@ MicrosummaryService.prototype = {
this._getField(bookmarkID, FIELD_MICSUM_EXPIRATION) > now)
continue;
// Reset the expiration time immediately, so if the refresh is failing
// we don't try it every 15 seconds, potentially overloading the server.
var now = new Date().getTime();
this._setField(bookmarkID, FIELD_MICSUM_EXPIRATION, now + UPDATE_INTERVAL);
this.refreshMicrosummary(bookmarkID);
}
},