Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor: update cache code and add tests #15

Merged

Conversation

syphax-bouazzouni
Copy link

Changes

  • Add tests for the api cache code (8f42d4c)
  • Refactor the cache middleware code (a16d626)

@syphax-bouazzouni syphax-bouazzouni merged commit 4eb4245 into development Apr 14, 2024
2 checks passed
syphax-bouazzouni added a commit that referenced this pull request May 27, 2024
* use $DEBUG_API_CLIENT instead of $DEBUG for debugging  request

* add  $API_CLIENT_INVALIDATE_CACHE option to disable cache

* save and re-use the top_level_links http response as the result do not change

* deprecate the find method in favor of get method for better performance

* disable the refresh_cache on each update call

* Refactor: update cache code and add tests (#15)

* add tests for the api cache code

* refactor the cache middleware code

* remove unused function in the cache middleware

* fix refactored cache code not getting the ld_obj when updating the cache
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant