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

keyPrefix ignored in v6+ #132

Closed
florian72810 opened this issue Sep 14, 2021 · 3 comments
Closed

keyPrefix ignored in v6+ #132

florian72810 opened this issue Sep 14, 2021 · 3 comments
Assignees

Comments

@florian72810
Copy link

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.

@WillPoulson
Copy link
Collaborator

Hi, thanks for reporting this issue. I'll take a look at it shortly and see if I can resolve this 👍

@WillPoulson WillPoulson self-assigned this Sep 14, 2021
@WillPoulson
Copy link
Collaborator

Should be resolved by b43c3ad .

I've just released this fix as 6.0.3 please update and try again 😄

@florian72810
Copy link
Author

I confirm it now works as expected 👍
Thanks!

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

No branches or pull requests

2 participants