Debug mode and cache