|
|
|
@ -42,6 +42,8 @@ module.exports.create = function (config) {
|
|
|
|
|
|
|
|
|
|
metadata_cache: {},
|
|
|
|
|
channel_cache: {},
|
|
|
|
|
cache_checks: {},
|
|
|
|
|
|
|
|
|
|
queueStorage: WriteQueue(),
|
|
|
|
|
queueDeletes: WriteQueue(),
|
|
|
|
|
queueValidation: WriteQueue(),
|
|
|
|
@ -117,8 +119,14 @@ module.exports.create = function (config) {
|
|
|
|
|
}
|
|
|
|
|
}());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Env.checkCache = function (channel) {
|
|
|
|
|
var f = Env.cache_checks[channel] || Util.throttle(function () {
|
|
|
|
|
if (Env.channel_cache[channel]) { return; }
|
|
|
|
|
delete Env.metadata_cache[channel];
|
|
|
|
|
delete Env.cache_checks[channel];
|
|
|
|
|
}, 30000);
|
|
|
|
|
f();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
(function () {
|
|
|
|
|
var custom = config.customLimits;
|
|
|
|
|