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

Clear webFrame cache at a certain interval #746

Merged
merged 2 commits into from
Apr 2, 2018

Conversation

yuya-oc
Copy link
Contributor

@yuya-oc yuya-oc commented Mar 27, 2018

Before submitting, please confirm you've

Please provide the following information:

Summary
Clear webFrame cache at a certain interval.

mattermost-webapp is SPA. So cache is not cleared due to no navigation by assuming this article.
http://seenaburns.com/debugging-electron-memory-usage/

We need to manually clear cache to free memory in long-term-use. Just for now, the interval is set to 1 hour.

Issue link
#710

Test Cases
Use an artifact for longer than the interval. After that, memory usage should not be highly increased.
For testing purpose, switching channels is a way to temporarily increase memory usage.

Additional Notes
https://circleci.com/gh/yuya-oc/desktop/712#artifacts

mattermost-webapp is SPA. So cache is not cleared due to no navigation.
We needed to manually clear cache to free memory in long-term-use.
@jasonblais
Copy link
Contributor

Thanks! I've been using the app today (on Mac) and posted in our performance channel for feedback from the team.

@jasonblais
Copy link
Contributor

@yuya-oc As discussed on pre-release, this PR should be ready to merge.

@yuya-oc
Copy link
Contributor Author

yuya-oc commented Apr 2, 2018

@jasonblais Thanks for testing!

@yuya-oc yuya-oc merged commit 7379d02 into mattermost:master Apr 2, 2018
@yuya-oc yuya-oc deleted the clear-memory-cache branch April 2, 2018 11:32
@yuya-oc yuya-oc mentioned this pull request May 23, 2018
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants