Blank Chats - Prevent Teams Caching

TL-1261 0 Reputation points
2023-12-09T01:12:16.22+00:00

I'm running Teams version 1.5.00.23861 on Ubuntu 22.04.

When I open Teams for the first time after restarting my computer, my chat screens are all blank. If I close the Teams process and open it a second time, my chats will reappear.

Teams does work. But this is a cumbersome workaround, so I did some research and found this:

https://learn.microsoft.com/en-us/answers/questions/583059/teams-blank-screen-on-chat-(linux)

This person had a similar problem and was advised to clear the cache found under ~/.config/Microsoft/Microsoft\ Teams. I don't see that folder path in my installation, but I found a cache folder under ~/.config/Microsoft/Microsoft Teams/Cache/ and cleared its contents.

I then rebooted my computer and started Teams. All my chats appeared the first time. Problem solved - I thought.

But I started my computer this morning, and Teams again failed to display my chats. I checked the cache folder, and it was populated again. So I have some questions:

- Why is Teams caching so much?

- Why doesn't it clean up its cache?

- How does it manage to break itself with this cache?

- Is there a configuration option that could prevent this issue?

I found this config file:

~/.config/Microsoft/Microsoft Teams/settings.json

There are a lot of keys in here that reference caching. Might changing one of these do the trick?


	"startPagePathAppCache":"https://teams.microsoft.com/"

	"enableTeamsOutlookMeetingAddinCacheClean":false

	"enableRemoveMeetingAddinCacheDirectory":false

	"rehydrateCachedUserOnAsync":true

	"compileCacheEnabled":true

	"enableClearStorageCache":true

Now, I could simply create a crontab entry that clears the Teams cache folder on every boot. It's a workaround, and I'll probably use it, but it's not ideal.

I thought you should know that this problem still occurs for some users. If you have any insight, I'd love to hear it.

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,392 questions
Skype for Business Linux
Skype for Business Linux
Skype for Business: A Microsoft communications service that provides communications capabilities across presence, instant messaging, audio/video calling, and an online meeting experience that includes audio, video, and web conferencing.Linux: A family of open-source Unix-like operating systems.
458 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. LiweiTian-MSFT 20,990 Reputation points Microsoft Vendor
    2023-12-11T02:31:26.3333333+00:00

    Hi @TL-1261

    We recommend that you update Teams to the latest version.

    You can also try uninstalling Teams and reinstalling it.

    The Teams cache is loaded after every login and cannot be prevented. If you want to try clearing the cache, try deleting all files in the ~/.config/Microsoft/Microsoft Teams directory.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.