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,
|
|
259
|
+
return this.cacheService.fetchOrStore(cacheKey, fetchContentV1, 60000); // 1 Minute
|
|
260
260
|
}
|
|
261
261
|
return fetchContentV1();
|
|
262
262
|
}
|