keyPrefix ignored in v6+
florian72810 opened this issue ยท 3 comments
Hello ๐
I tried upgrading to 6+ and it seems the keyPrefix is ignored.
I declare the module in app.module.ts as:
CacheModule.forRoot({ keyPrefix: 'rest-cache' }),
When looking at the IndexedDB in Chrome Dev Tools, every cached item is prefixed with "undefined".
I rollbacked to Ionic-Cache 5, and every item is prefixed with "rest-cache", as expected.
No matter what prefix I use, it is ignored. I also tried to not using a prefix, and the data in IndexedDB is still prefixed with "undefined".
Between every test, I cleared the IndexedDB with Chrome Dev Tools.
Hi, thanks for reporting this issue. I'll take a look at it shortly and see if I can resolve this ๐
Should be resolved by b43c3ad .
I've just released this fix as 6.0.3
please update and try again ๐
I confirm it now works as expected ๐
Thanks!