data-provider / core

Async data provider agnostic about data origins

Home Page:https://data-provider.javierbrea.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Selectors cache is not being cleaned instantly when a dependency is cleaned using "force"

javierbrea opened this issue · comments

Selectors are not cleaning instantly its cache when a dependency is cleaned using the force option. They should clean their cache instantly when any of their dependencies is cleaned using the force option.

To Reproduce
Configure the cleanCacheThrottle option in all providers and selectors to 5 seconds. Set an interval to clean a selector cache for each two seconds. The cleanCache method of the selector will be throttled then, so its cache will be cleaned each 5 seconds. Then, call to the cleanCache method of one of the selector's dependencies using the force option. The selector's dependency should also be cleaned instantly, but it remains throttled.