Clear cache when preferred content size changes.