@roots/bud-cache 2023.6.5 → 2023.6.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,13 +10,10 @@ import InvalidateCacheExtension from '../invalidate-cache/index.js';
10
10
  * Cache service class
11
11
  */
12
12
  export default class Cache extends Service {
13
- constructor() {
14
- super(...arguments);
15
- /**
16
- * Enabled
17
- */
18
- this.enabled = true;
19
- }
13
+ /**
14
+ * Enabled
15
+ */
16
+ enabled = true;
20
17
  /**
21
18
  * Type
22
19
  */
@@ -93,7 +90,7 @@ export default class Cache extends Service {
93
90
  cacheDirectory: this.cacheDirectory,
94
91
  idleTimeout: 10000,
95
92
  idleTimeoutForInitialStore: 0,
96
- profile: false,
93
+ profile: this.app.context.debug === true,
97
94
  version: this.app.hooks.filter(`build.cache.version`, this.version),
98
95
  };
99
96
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@roots/bud-cache",
3
- "version": "2023.6.5",
3
+ "version": "2023.6.6",
4
4
  "description": "Config caching",
5
5
  "engines": {
6
6
  "node": ">=16"
@@ -85,8 +85,8 @@
85
85
  "@skypack/package-check": "0.2.2"
86
86
  },
87
87
  "dependencies": {
88
- "@roots/bud-framework": "2023.6.5",
89
- "@roots/bud-support": "2023.6.5",
88
+ "@roots/bud-framework": "2023.6.6",
89
+ "@roots/bud-support": "2023.6.6",
90
90
  "strip-ansi": "7.0.1",
91
91
  "tslib": "2.5.0"
92
92
  },
@@ -119,7 +119,7 @@ export default class Cache
119
119
  cacheDirectory: this.cacheDirectory,
120
120
  idleTimeout: 10000,
121
121
  idleTimeoutForInitialStore: 0,
122
- profile: false,
122
+ profile: this.app.context.debug === true,
123
123
  version: this.app.hooks.filter(`build.cache.version`, this.version),
124
124
  }
125
125
  }