Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Ignore] logs restore cache invalidation header #2707

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions app/src/org/commcare/network/CommcareRequestGenerator.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.commcare.network;

import android.net.Uri;
import android.util.Log;

import com.google.common.collect.ArrayListMultimap;
import com.google.common.collect.ImmutableMultimap;
Expand All @@ -16,9 +17,11 @@
import org.commcare.interfaces.CommcareRequestEndpoints;
import org.commcare.models.database.SqlStorage;
import org.commcare.provider.DebugControlsReceiver;
import org.commcare.util.LogTypes;
import org.commcare.utils.SyncDetailCalculations;
import org.javarosa.core.model.User;
import org.javarosa.core.model.utils.DateUtils;
import org.javarosa.core.services.Logger;

import java.io.FileNotFoundException;
import java.io.IOException;
Expand Down Expand Up @@ -137,6 +140,9 @@ public Response<ResponseBody> makeCaseFetchRequest(String baseUri, boolean inclu
params.put("overwrite_cache", "true");
// Always wipe this flag after we have used it once
CommCareApplication.instance().setInvalidateCacheFlag(false);
Logger.log(LogTypes.TYPE_USER, "setting cache invalidation header as true for restore");
} else {
Logger.log(LogTypes.TYPE_USER, "setting cache invalidation header as false for restore");
}

requester = CommCareApplication.instance().createGetRequester(
Expand Down