reduce number of unnecessary requests from HalEndpointService and RemoteDataBuildService

This commit is contained in:
Art Lowel
2019-10-28 18:01:05 +01:00
parent a04eb28815
commit 1102cda3b2
4 changed files with 23 additions and 9 deletions

View File

@@ -216,7 +216,7 @@ export class RequestService {
* @param {GetRequest} request The request to check
* @returns {boolean} True if the request is cached or still pending
*/
private isCachedOrPending(request: GetRequest): boolean {
public isCachedOrPending(request: GetRequest): boolean {
const inReqCache = this.hasByHref(request.href);
const inObjCache = this.objectCache.hasBySelfLink(request.href);
const isCached = inReqCache || inObjCache;