itlab-internal-services 2.16.13 → 2.16.14

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.
@@ -254,9 +254,9 @@ let ContentService = ContentService_1 = class ContentService extends base_http_s
254
254
  */
255
255
  async fetchCachedContentV1(resourceId, returnType) {
256
256
  const fetchContentV1 = () => this.fetchContentV1(resourceId, returnType);
257
- if (this.cacheService) {
257
+ if (this.cacheService && returnType === 'htmlPopulated') {
258
258
  const cacheKey = this.cacheKey(resourceId, returnType);
259
- return this.cacheService.fetchOrStore(cacheKey, fetchContentV1, 86400000); // 1 day or until updated
259
+ return this.cacheService.fetchOrStore(cacheKey, fetchContentV1, 60000); // 1 Minute
260
260
  }
261
261
  return fetchContentV1();
262
262
  }
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "name": "Timo Scheuermann",
5
5
  "email": "timo.scheuermann@sv-informatik.de"
6
6
  },
7
- "version": "2.16.13",
7
+ "version": "2.16.14",
8
8
  "type": "commonjs",
9
9
  "files": [
10
10
  "dist"