mirror of
https://github.com/google/nomulus
synced 2026-09-09 01:26:24 +00:00
Turn on memcache in flow tests.
No tests break because of this, but some tests that were previously intentionally clearing memcache (for example, the test in DomainInfoFlow that counts datastore calls) are now doing something that is not a no-op anymore. Also fix an incorrect comment about memcache in DatastoreHelper. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=154087182
This commit is contained in:
@@ -819,8 +819,10 @@ public class DatastoreHelper {
|
||||
public void vrun() {
|
||||
saveResource(resource, wantBackup);
|
||||
}});
|
||||
// Force the session to be cleared so that when we read it back, we read from Datastore
|
||||
// and not from the transaction cache or memcache.
|
||||
// Force the session cache to be cleared so that when we read the resource back, we read from
|
||||
// Datastore (or memcache) and not from the session cache. This is needed to trigger Objectify's
|
||||
// load process (unmarshalling entity protos to POJOs, nulling out empty collections, calling
|
||||
// @OnLoad methods, etc.) which is bypassed for entities loaded from the session cache.
|
||||
ofy().clearSessionCache();
|
||||
return ofy().load().entity(resource).now();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user