Change record status: 
Project: 
Introduced in branch: 
8.1.x
Introduced in version: 
8.1.1
Description: 

Certain use cases, such as breadcrumbs, require caching by a path's parent.

For example /admin/config/development/performance and /admin/config/development/testing both have a breadcrumb of Home > Administration > Configuration > Development.

The url.path.parent cache context allows the cache ID part to be resolved to 'admin/config/development' instead of the full path, leading to fewer cache entries and higher cache hit rates, and should be used instead of url.path where possible.

Impacts: 
Module developers