You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you call Client::getEntries() method passing a Query that has no locale set, the cache key will not include the locale code, so that if you have entries in different locales, you will get the same cache content for any locale.
I think it is common to build a Query without setting a specific locale, because in this case the Client uses the default locale, and in most cases that's exactly what you want.
The text was updated successfully, but these errors were encountered:
I'm already working on a PR to fix this. Coming soon.
fabianaromagnoli
changed the title
getEntries cache does not work properly with different locales
Client::getEntries() cache does not work properly with different locales
Jan 9, 2023
If you call
Client::getEntries()
method passing aQuery
that has no locale set, the cache key will not include the locale code, so that if you have entries in different locales, you will get the same cache content for any locale.I think it is common to build a
Query
without setting a specific locale, because in this case theClient
uses the default locale, and in most cases that's exactly what you want.The text was updated successfully, but these errors were encountered: