Skip to content
This repository has been archived by the owner on Dec 7, 2019. It is now read-only.

Stop caching all Room responses #387

Open
wants to merge 1 commit into
base: feature/rx2
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ Observable<Parsed> readDisk(@Nonnull final Key key) {
&& StoreUtil.persisterIsStale(key, persister)) {
backfillCache(key);
}
}).cache();
}).replay(1);
}

@SuppressWarnings("CheckReturnValue")
Expand Down Expand Up @@ -170,7 +170,7 @@ Observable<Parsed> response(@Nonnull final Key key) {
return Observable.error(throwable);
})
.doAfterTerminate(() -> inFlightRequests.invalidate(key))
.cache();
.replay(1);
}


Expand Down