зеркало из https://github.com/mozilla/gecko-dev.git
don't recheck microsummaries when previous update failed until normal expiration
bug=342908 r=ben
This commit is contained in:
Родитель
71e59e0dda
Коммит
f2f3f66af3
|
@ -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);
|
||||
}
|
||||
},
|
||||
|
|
Загрузка…
Ссылка в новой задаче