Fix cache size tracking bug.