Use an aging system for caches
This commit is contained in:
parent
d312466556
commit
0930af652f
11 changed files with 61 additions and 37 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue