Remove old caching references
This commit is contained in:
parent
4d4c078220
commit
d727847d9b
1 changed files with 0 additions and 4 deletions
|
@ -4,13 +4,10 @@ var Q = require('q');
|
|||
|
||||
var services = {};
|
||||
|
||||
var cache = {};
|
||||
|
||||
require("fs").readdirSync(path.join(__dirname, "..", "lib", "services")).forEach(function(file) {
|
||||
var service = require("../lib/services/" + file);
|
||||
if (service.search) {
|
||||
services[service.id] = service;
|
||||
cache[service.id] = {};
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -57,7 +54,6 @@ module.exports = function(req, res, next) {
|
|||
|
||||
items.unshift(item);
|
||||
req.db.matches.save({_id:serviceId + itemId, items:items});
|
||||
cache[serviceId][type + "-" + itemId] = items;
|
||||
res.render(type, {page: type, title: item.name + " by " + item.artist.name, items: items});
|
||||
});
|
||||
}, function(error) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue