https://github.com/scandipwa/cache
Provides granular cache control for ScandiPWA
https://github.com/scandipwa/cache
Last synced: 2 months ago
JSON representation
Provides granular cache control for ScandiPWA
- Host: GitHub
- URL: https://github.com/scandipwa/cache
- Owner: scandipwa
- License: osl-3.0
- Created: 2019-12-03T09:18:16.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-11-22T11:02:21.000Z (over 2 years ago)
- Last Synced: 2025-03-23T09:48:23.847Z (3 months ago)
- Language: PHP
- Size: 25.4 KB
- Stars: 0
- Watchers: 3
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ScandiPWA Cache
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.