fixed a bug and disable view cache in development mode