Model
BlockCache
Magento\Csp\Model\BlockCache
What it does
This class wraps Magento's cache interface to store both block HTML content and associated Content Security Policy (CSP) rules together.
When developers cache blocks that contain dynamic CSP policies (like inline scripts or external resources), this ensures the CSP rules are preserved and restored with the cached content, maintaining proper security headers.
Public Methods
- getFrontend()
- load()
- save()
- remove()
- clean()