curiosum-dev / kanta

User-friendly translations manager for Elixir/Phoenix projects.
https://kanta.curiosum.com/kanta/dashboard
MIT License
182 stars 15 forks source link

Make configurable kanta adapters #63

Closed kubosuke closed 5 months ago

kubosuke commented 5 months ago

Summary

Make injectable Kanta.Cache adapter, primary_storage_adapter from config.exs

Overview

As described in this issue, https://github.com/curiosum-dev/kanta/issues/55

when I deploy apps in multi-region on fly.io, Kanta's cache logic causes a huge delay. and finally, I found that Kanta's cache logic, especially Nebulex.Cache.Partitioned causes delay. if we update here not to use Partitioned cache, delay was resolved.

This PR is for configurable Kanta's cache logic from config.exs .