This repository defines the cache worker for updating the cache of Serlo's Graphql API.
yarn
to install all dependenciesyarn test
runs the unit tests
__tests__
contains the unit testssrc/
defines the cache worker
- edit
src/cache-keys.json
to set the keys you want to update. - Set environment variable PAGINATION (integer) to determine how many keys are going to be updated at each call.