ngneat / cashew

🐿 A flexible and straightforward library that caches HTTP requests in Angular
https://www.netbasal.com
MIT License
682 stars 33 forks source link

Skip auto refresh cache after invalidate #30

Closed Adrug closed 3 years ago

Adrug commented 3 years ago

I suggest skip auto repeat request after invalidate the cache until first call by user the call.


[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report  
[ ] Performance issue
[x] Feature request
[ ] Documentation issue or request
[ ] Support request
[ ] Other... Please describe:

Current behavior

We got a repeat all requests after delete some key/bucker from the cache manager.

Expected behavior

Add config for prevent auto repeat cached requests

Enviroment

Angular version: 9.1.2 Cashew version: 1.3.2

NetanelBasal commented 3 years ago

What do you mean auto-repeat? Can you elaborate, please?

Adrug commented 3 years ago

Sorry, it looks like this was bug in my code^)