Fixing cache refresh