Skip to content

Commit

Permalink
feat!: use axios cache interceptor for cache implementation (openedx#368
Browse files Browse the repository at this point in the history
)

BREAKING CHANGE: replacing axios-cache-adapter with axios-cache-interceptor
  • Loading branch information
long74100 authored Sep 2, 2022
1 parent e520cf4 commit ecbad6f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
11 changes: 0 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,3 @@ jobs:

- name: Run Coverage
uses: codecov/codecov-action@v3

- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: extract_branch

- name: Preview semantic-release version
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.SEMANTIC_RELEASE_NPM_TOKEN }}
run: npx semantic-release --dry-run --branches=${{ steps.extract_branch.outputs.branch}}
2 changes: 1 addition & 1 deletion docs/how_tos/caching.rst
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ The examples below demonstrate how to configure commonly used caching behavior o
Overriding the request id
=========================

Every request passed through the axios-cache-interceptor interceptor has an id. Each request id is responsible for binding a request to its cache,
Every request passed through the axios-cache-interceptor interceptor has an id. Each request id is responsible for binding a request to its cache
for referencing (or invalidating) it later.

const { id: requestId} = cachedHttpClient.get('/courses/', {
Expand Down

0 comments on commit ecbad6f

Please sign in to comment.