When closing a connection, copy over the cache setting onto the new object (Bug #1168616)