[PATCH] autocache patch for mock