Model
IdentityMap
Magento\Cms\Model\Page\IdentityMap
What it does
This class acts as an in-memory cache (identity map pattern) for CMS Page objects during a single request.
Developers use it to avoid loading the same page multiple times from the database within the same request, improving performance by storing already-loaded pages by their ID.
It automatically clears after each request via the ResetAfterRequestInterface.
Public Methods
- add()
- get()
- remove()
- clear()
- _resetState()