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

refactor(chatwoot): remove message ids cache in chatwoot to use chatwoot's api itself #331

Merged
merged 3 commits into from
Dec 29, 2023

Conversation

jaison-x
Copy link
Contributor

refactor(chatwoot): remove message ids cache in chatwoot to use chatwoot's api itself

Remove use of disc cache to optimize performance.

BREAKING CHANGE: to make this, we need to use the param source_id from message in chatwoot.
This param is only available from api in chatwoot version => 3.4.0.

… cache

Remove use of disc cache for optimize performance.
To make this, we need change to use only one instance of ChatwootService in entire application.
… to be ignored.

With this, messageCache is used to support Chatwoot version <= 3.3.1.

After this version we can remove use of message cache and use only the source_id field to check chatwoot's webhook needs to be ignored. It's have much better performance.
…oot's api itself.

Remove use of disc cache to optimize performance.

BREAKING CHANGE: to make this, we need to use the param `source_id` from message in chatwoot.
This param is only available from api in chatwoot version => 3.4.0.
@nestordavalos
Copy link
Contributor

my cpu thanks you,
great job works fine so far the change you are referring to is this, https://github.com/chatwoot/chatwoot/pull/8359/files
for those who want to try in versions <=3.4.0

@jaison-x
Copy link
Contributor Author

my cpu thanks you, great job works fine so far the change you are referring to is this, https://github.com/chatwoot/chatwoot/pull/8359/files for those who want to try in versions <=3.4.0

Good Nestor, with this everybody with version <= 3.4.0 can use this PR too! This PR helps a lot with performance in chatwoot integration.

@DavidsonGomes DavidsonGomes merged commit 384bde3 into EvolutionAPI:develop Dec 29, 2023
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

Successfully merging this pull request may close these issues.

3 participants