When upgrading from 5.2 to 5.8.0, my entire /var/spool/squid was erased.
That's the postinstall script of the squid in 5.2. squid-2.whatever RPMs don't explicitly change the cache on upgrade/install. FWIW, if you were using the squid from 5.2, the cache was incompatible anyways.