Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/scandipwa/cache
Provides granular cache control for ScandiPWA
https://github.com/scandipwa/cache
Last synced: 14 days 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 (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-11-22T11:02:21.000Z (almost 2 years ago)
- Last Synced: 2024-09-20T09:39:50.860Z (2 months ago)
- Language: PHP
- Size: 25.4 KB
- Stars: 0
- Watchers: 4
- 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.