Change the mode of cached and debug