Fix for failing cache clear

Changes to fix the broken cache clear