Re-enable server cache

The hope is that having only one server (HTTP, instead of HTTP + HTTPS) would be
enough to relieve the server of the stress it experiences memory-wise.

While there was a crash a week with two servers, there was only one crash in a
month since the switch, and the server was immediately restarted.
This commit is contained in:
Thaddee Tyl 2015-11-21 12:33:22 +01:00
parent b17c8bd8c1
commit d16e8f62db

View File

@ -158,8 +158,8 @@ var minAccuracy = 0.75;
// = 1 - max(1, df) / rf
var freqRatioMax = 1 - minAccuracy;
// Request cache size of 50MB (~5000 bytes/image).
var requestCache = new LruCache(0); // 10000
// Request cache size of 5MB (~5000 bytes/image).
var requestCache = new LruCache(1000);
// Deep error handling for vendor hooks.
var vendorDomain = domain.create();