DataCategoryHashMap
Magento\CatalogUrlRewrite\Model\Map\DataCategoryHashMap
What it does
This class provides a cached mapping of category IDs to their subcategory IDs in Magento 2's URL rewrite system.
Developers use it to efficiently retrieve all child categories for a given parent category without repeatedly querying the database, improving performance during URL rewrite generation.
It implements a hash map pattern with automatic cache invalidation and request-scoped reset capabilities.
Public Methods
- getAllData()
- getData()
- resetData()
- _resetState()