From 4e67bfefd50654861500af08e347dae767d2ec23 Mon Sep 17 00:00:00 2001 From: "argiro.kokogiannaki" Date: Wed, 23 Nov 2016 12:17:14 +0000 Subject: [PATCH] temporarily disable cache organization landing page main info git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-portal/trunk@44640 d315682c-612b-4755-9ff5-7f18f6832af3 --- portal-2/src/app/services/organization.service.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/portal-2/src/app/services/organization.service.ts b/portal-2/src/app/services/organization.service.ts index 84a4fd29..fd588392 100644 --- a/portal-2/src/app/services/organization.service.ts +++ b/portal-2/src/app/services/organization.service.ts @@ -19,9 +19,12 @@ export class OrganizationService { let url = OpenaireProperties.getSearchAPIURL()+'organizations/'+id; let key = url; - if (this._cache.has(key)) { - return Observable.of(this._cache.get(key)); - } + // if (this._cache.has(key)) { + // console.log("HEre in req after put in cache "+this._cache.has(key)); + // console.log("HEre in req get from cache " + this._cache.get(key).title.name); + // return Observable.of(this._cache.get(key)); + // } + return this.http.get(url) .map(res => res.json()) .map(res => res['result']['metadata']['oaf:entity']['oaf:organization']) @@ -31,6 +34,7 @@ export class OrganizationService { this._cache.set(key, res); }); + } private handleError (error: Response) {