Perhaps something like the following works (I have not checked all the details): Let $C$ be a smooth plane conic and let $Y$ be the projective cone over $C$. Then $Cl(Y) = \mathbb{Z}$ but the class group of the local ring of the vertex of $Y$ is $\mathbb{Z}/2$. Let $X$ be affine cone over $Y$. Then the class group of the local ring $R$ of the vertex of $X$ is $\mathbb{Z}$ but it seems that the class group of $R$ localised at the prime ideal corresponding to the cone over the vertex of $Y$ is $\mathbb{Z}/2$.