Use an aging system for caches

This commit is contained in:
be5invis 2021-04-21 20:28:24 -07:00
parent d312466556
commit 0930af652f
11 changed files with 61 additions and 37 deletions

View file

@ -310,7 +310,7 @@ class BooleanGeometry extends GeometryBase {
exports.hashGeometry = function (geom) {
const s = geom.toShapeStringOrNull();
if (!s) return null;
return crypto.createHash("sha256").update(s).digest();
return crypto.createHash("sha256").update(s).digest("hex");
};
function combineWith(a, b) {