(bug 43758) rebuild the cache rather than flushing it.

Rebuilds the cache using the new data, otherwise we get wrong values from
the slave dbs due to propagation delays.

Change-Id: If2f5b6ae183508fc9ef03d3d84fe4bcca58c2166
Merge "(bug 43758) rebuild the cache rather than flushing it."