strapi-plugin-navigation
strapi-plugin-navigation copied to clipboard
feat: cache plugin integration
Ticket
https://github.com/VirtusLab-Open-Source/strapi-plugin-navigation/issues/417
Summary
What does this PR do/solve?
- integration with REST Cache Plugin
Test Plan
- install cache plugin
- enable and provide configuration
- enable cache in plugin's config
- read for a navigation via client call multiple time
- calls after the first one should be affected by caching (load times are lower)
- call cache should be the same for items specified in rest cache plugin's config and navigation calls
Codecov Report
Attention: Patch coverage is 97.36842% with 1 lines in your changes are missing coverage. Please review.
Project coverage is 53.33%. Comparing base (
0f9934f) to head (50fd838).
| Files | Patch % | Lines |
|---|---|---|
| server/services/admin.ts | 95.83% | 1 Missing :warning: |
Additional details and impacted files
@@ Coverage Diff @@
## master #419 +/- ##
==========================================
+ Coverage 51.83% 53.33% +1.50%
==========================================
Files 31 33 +2
Lines 1115 1153 +38
Branches 332 338 +6
==========================================
+ Hits 578 615 +37
- Misses 534 535 +1
Partials 3 3
| Flag | Coverage Δ | |
|---|---|---|
| unittest | 53.33% <97.36%> (+1.50%) |
:arrow_up: |
Flags with carried forward coverage won't be shown. Click here to find out more.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.