Fixed broken cache update detection