Bug fix: Fix the error in _flush_cache method of the User model.