Fix caching of npm search results and only make one registry request on /admin/plugins

fixes #1488
This commit is contained in:
Marcel Klehr 2013-03-25 12:45:23 +01:00
parent ef7fb5c7f0
commit 0070eab416
3 changed files with 10 additions and 6 deletions

View file

@ -163,8 +163,10 @@ $(document).ready(function () {
}
updateHandlers();
socket.emit('checkUpdates');
tasks++;
setTimeout(function() {
socket.emit('checkUpdates');
tasks++;
}, 5000)
});
socket.on('updatable', function(data) {