add redis caching, closes #3. More logs, closes #9

This commit is contained in:
jomo
2014-11-02 04:12:00 +01:00
parent d2a5b3d42e
commit da8ba52717
9 changed files with 151 additions and 49 deletions

View File

@@ -26,6 +26,7 @@ router.get('/:uuid', function(req, res) {
try {
helpers.get_avatar(uuid, helm, size, function(err, status, image) {
console.log(uuid + " - " + status);
if (err) {
console.error(err);
handle_404(def);
@@ -33,6 +34,11 @@ router.get('/:uuid', function(req, res) {
sendimage(200, status == 1, image);
} else if (status == 3) {
handle_404(def);
} else {
console.error("wat");
console.error(err);
console.error(status);
handle_404(def);
}
});
} catch(e) {