[cache] rework web path remove method.