Don't cache-bust twice when the size of an object is busted

master
Sven Slootweg 7 years ago
parent a9b7bbe690
commit f44f95fbf2

@ -42,9 +42,7 @@ module.exports = function createObject(options) {
/* If the size changes, the cache should also be implicitly busted. */
this.bustSize();
this.bustCache();
}
if (Object.keys(transformedProperties).some(property => this.cacheBustingProperties.includes(property))) {
} else if (Object.keys(transformedProperties).some(property => this.cacheBustingProperties.includes(property))) {
this.bustCache();
}
},

Loading…
Cancel
Save