Fixed site option group sorting bug and the global cache reset bug