@mashroom/mashroom-storage
Advanced tools
Comparing version 1.5.1 to 1.5.2
@@ -44,2 +44,3 @@ "use strict"; | ||
if (this.config.enabled === true) { | ||
// Could be disabled per collection | ||
return this.getCollectionProperties(name).enabled !== false; | ||
@@ -57,2 +58,3 @@ } | ||
if (this.config.invalidateOnUpdate === true) { | ||
// Could be disabled per collection | ||
return this.getCollectionProperties(name).invalidateOnUpdate !== false; | ||
@@ -59,0 +61,0 @@ } |
@@ -7,3 +7,3 @@ { | ||
"license": "MIT", | ||
"version": "1.5.1", | ||
"version": "1.5.2", | ||
"files": [ | ||
@@ -14,8 +14,8 @@ "dist/**", | ||
"dependencies": { | ||
"@mashroom/mashroom-utils": "1.5.1" | ||
"@mashroom/mashroom-utils": "1.5.2" | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "^7.8.4", | ||
"@mashroom/mashroom": "1.5.1", | ||
"@mashroom/mashroom-memory-cache": "1.5.1", | ||
"@mashroom/mashroom": "1.5.2", | ||
"@mashroom/mashroom-memory-cache": "1.5.2", | ||
"@types/jest": "^25.2.2", | ||
@@ -51,3 +51,3 @@ "eslint": "^7.0.0", | ||
"memoryCache": { | ||
"enabled": true, | ||
"enabled": false, | ||
"ttlSec": 120, | ||
@@ -54,0 +54,0 @@ "invalidateOnUpdate": true, |
@@ -38,3 +38,3 @@ | ||
"memoryCache": { | ||
"enabled": true, | ||
"enabled": false, | ||
"ttlSec": 120, | ||
@@ -44,2 +44,3 @@ "invalidateOnUpdate": true, | ||
"mashroom-portal-pages": { | ||
"enabled": true, | ||
"ttlSec": 300 | ||
@@ -56,3 +57,3 @@ } | ||
* _memoryCache_: Use the memory cache to improve the performance. Requires *@mashroom/mashroom-memory-cache* to be installed. | ||
* _enabled_: Enable the store. If you set this to false you can still enable caching on some collections (default: true) | ||
* _enabled_: Enable cache (of all) collections. The preferred way is to set this to false and enable caching per collection (default: false) | ||
* _ttlSec_: The default TTL in seconds. Can be overwritten per collection (default: 120) | ||
@@ -59,0 +60,0 @@ + _invalidateOnUpdate_: Clear the cache for the whole collection if an entry gets updated (default: true). |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25523
453
193
+ Added@mashroom/mashroom-utils@1.5.2(transitive)
- Removed@mashroom/mashroom-utils@1.5.1(transitive)