Log in
Model

IdentityMap

Magento\Cms\Model\Page\IdentityMap

What it does

This class serves as an in-memory cache (identity map pattern) for CMS Page objects that have been loaded during a request.

Developers use this to avoid loading the same page multiple times from the database within a single request, improving performance by storing and retrieving already-loaded page instances by their ID.

Public Methods

  • add()
  • get()
  • remove()
  • clear()
  • _resetState()