[caching] add missing break in cache_metadata_size