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) {