better cache set
This commit is contained in:
parent
e4600da176
commit
815a04cbdb
@ -240,7 +240,7 @@ exports.multitxs = function(req, res, next) {
|
|||||||
}, function(err) { // finished callback
|
}, function(err) { // finished callback
|
||||||
if (err) return common.handleErrors(err, res);
|
if (err) return common.handleErrors(err, res);
|
||||||
|
|
||||||
if (from == 0) {
|
if (!cache[addrStrs] || from == 0) {
|
||||||
cache[addrStrs] = txs;
|
cache[addrStrs] = txs;
|
||||||
// 5 min. just to purge memory. Cache is overwritten in from=0 requests.
|
// 5 min. just to purge memory. Cache is overwritten in from=0 requests.
|
||||||
setTimeout(function(){
|
setTimeout(function(){
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user