diff --git a/common/src/main/java/ctbrec/sites/showup/ShowupModel.java b/common/src/main/java/ctbrec/sites/showup/ShowupModel.java index 605bc414..fa0ad8ce 100644 --- a/common/src/main/java/ctbrec/sites/showup/ShowupModel.java +++ b/common/src/main/java/ctbrec/sites/showup/ShowupModel.java @@ -28,14 +28,16 @@ public class ShowupModel extends AbstractModel { @Override public boolean isOnline(boolean ignoreCache) throws IOException, ExecutionException, InterruptedException { - List modelList = getShowupSite().getModelList(); - for (Model model : modelList) { - ShowupModel m = (ShowupModel) model; - if (m.getUid() == uid) { - return m.getOnlineState(false) != State.ONLINE; + if(ignoreCache) { + List modelList = getShowupSite().getModelList(); + for (Model model : modelList) { + ShowupModel m = (ShowupModel) model; + if (m.getUid() == uid) { + setOnlineState(m.getOnlineState(false)); + } } } - return false; + return getOnlineState(false) == State.ONLINE; } @Override