scandipwa/cache

ScandiPWA bootstrap module

Maintainers

Details

github.com/scandipwa/cache

Source

Installs: 159 656

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 5

Forks: 6

1.1.5 2022-02-08 22:33 UTC

This package is auto-updated.

Last update: 2024-04-09 03:34:22 UTC


README

Provides granular cache control for ScandiPWA.

Requirements

scandipwa/persisted-query: "^1.0"

Cache markdown

Utilizes default Magento 2 cache control mechanism over X-Magento-Tags-Pattern header.

Provides AddTagsToResponsePlugin to add entity headers to each GraphQl cacheable response.

Utilizes custom Cache entity (singleton), to gather all entities, that were loaded during current request.

Flush happens based on default cache_flush events for most entities.

CMS pages has own event observers to track response/flush.