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

Fix potential duplicate class loading issue causing memory leaks. #114

Merged
merged 1 commit into from
Dec 30, 2024

Conversation

dixitdeepak
Copy link
Contributor

The expand string method loads Groovy classes. It first checks the cache and, if not found, creates a new class loader each time. This behavior can lead to memory leaks when used improperly.

The Shopify URL may contain dynamic values, making it unsuitable for the expand method. The systemMessageRemote.sendUrl should use constant expressions that are reusable and appropriate for caching. Updated the code to modify systemMessageRemote.sendUrl by replacing the Shopify app version directly.

The expand string method loads Groovy classes. It first checks the cache and, if not found, creates a new class loader each time. This behavior can lead to memory leaks when used improperly.

The Shopify URL may contain dynamic values, making it unsuitable for the expand method. The systemMessageRemote.sendUrl should use constant expressions that are reusable and appropriate for caching. Updated the code to modify systemMessageRemote.sendUrl by replacing the Shopify app version directly.
@dixitdeepak dixitdeepak merged commit a481a0c into main Dec 30, 2024
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.

1 participant