diff --git a/services/plugins.service.ts b/services/plugins.service.ts index b9e45511..34fdc7f1 100644 --- a/services/plugins.service.ts +++ b/services/plugins.service.ts @@ -52,11 +52,11 @@ export class PluginsService { } getPluginsByPageRoute(api:string, pid:string, route:string){ let url = api + 'community/' +pid+'/plugins/page/route?route=' + route; - return this.http.get>((properties.useLongCache) ? (properties.cacheUrl + encodeURIComponent(url) + (properties.forceCacheReload?'&forceReload=true':'')) : url); + return this.http.get>(/*(properties.useLongCache) ? (properties.cacheUrl + encodeURIComponent(url) + (properties.forceCacheReload?'&forceReload=true':'')) : */url); } getPluginTemplatesByPageRoute(api:string, pid:string, route:string){ let url = api + 'community/' + pid + '/pluginTemplates/page/route?route=' + route; - return this.http.get>((properties.useLongCache) ? (properties.cacheUrl + encodeURIComponent(url) + (properties.forceCacheReload?'&forceReload=true':'')) : url); + return this.http.get>(/*(properties.useLongCache) ? (properties.cacheUrl + encodeURIComponent(url) + (properties.forceCacheReload?'&forceReload=true':'')) :*/ url); } togglePlugin(id: string, status: boolean, api: string, community) { diff --git a/utils/configuration/configuration.service.ts b/utils/configuration/configuration.service.ts index ad3bfff6..43f804bb 100644 --- a/utils/configuration/configuration.service.ts +++ b/utils/configuration/configuration.service.ts @@ -37,7 +37,7 @@ export class ConfigurationService { if (pid == null || this.portal?.getValue()?.static) return; let url = properties.adminToolsAPIURL + "/" + properties.adminToolsPortalType + "/" + pid + "/full"; this.promise = new Promise(resolve => { - this.sub = this.http.get((properties.useLongCache) ? (properties.cacheUrl + encodeURIComponent(url) + (properties.forceCacheReload?'&forceReload=true':'')) : url).subscribe( + this.sub = this.http.get(/*(properties.useLongCache) ? (properties.cacheUrl + encodeURIComponent(url) + (properties.forceCacheReload?'&forceReload=true':'')) :*/ url).subscribe( (portal: Portal) => { this.portal.next(portal); resolve(); diff --git a/utils/helper/helper.service.ts b/utils/helper/helper.service.ts index ba7a88b0..65eb8159 100644 --- a/utils/helper/helper.service.ts +++ b/utils/helper/helper.service.ts @@ -26,7 +26,7 @@ export class HelperService { } } - return this.http.get((properties.useLongCache)? (properties.cacheUrl+encodeURIComponent(url)+ (properties.forceCacheReload?'&forceReload=true':'')): url); + return this.http.get(/*(properties.useLongCache)? (properties.cacheUrl+encodeURIComponent(url)+ (properties.forceCacheReload?'&forceReload=true':'')):*/ url); //.map(res => res.json()); } @@ -43,7 +43,7 @@ export class HelperService { let url = properties.adminToolsAPIURL; url += '/' + portalType + '/' + portal + '/pagehelpcontent/grouped?active=true&page=' + ((page_route.indexOf("/"+portal+"/")!=-1 ) ? ("/" + page_route.split("/"+portal+"/")[1]) : page_route); - return this.http.get((properties.useLongCache) ? (properties.cacheUrl + encodeURIComponent(url)+ (properties.forceCacheReload?'&forceReload=true':'')) : url); + return this.http.get(/*(properties.useLongCache) ? (properties.cacheUrl + encodeURIComponent(url)+ (properties.forceCacheReload?'&forceReload=true':'')) :*/ url); }else { return of(null); }