This change moves cache clearing into the repo plugin, and standardizes on a single way of clearing the cache.