Only disable caching checkbox if caching is already disabled (#4811).