Commit 53ba19bf authored by Boris Kocherov's avatar Boris Kocherov

remove schema downloaded cache as @romain suggested

parent f6626c69
......@@ -173,17 +173,7 @@
}
hash = url.hash;
url = url.href;
return RSVP.Queue()
.push(function () {
if (g.props.schema_cache.hasOwnProperty(download_url)) {
return g.props.schema_cache[download_url];
}
return downloadJSON(download_url)
.push(function (json) {
g.props.schema_cache[download_url] = json;
return json;
});
})
.push(function (json) {
checkCircular(g, path, url);
return resolveLocalReference(json, hash);
......@@ -503,7 +493,6 @@
// it's need for schema uri computation
g.props.schema = {};
g.props.schema_map = {};
g.props.schema_cache = {};
// schema_required_urls[path] = [
// stack required urls, on every unrequired field stack begining from []
// "url1",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment