Skip to content

fix: assign random cache folders to prevent errors with multiple brow…#419

Open
saul-l wants to merge 2 commits into
Voltstro-Studios:masterfrom
saul-l:MultipleBrowserInstanceCacheFix
Open

fix: assign random cache folders to prevent errors with multiple brow…#419
saul-l wants to merge 2 commits into
Voltstro-Studios:masterfrom
saul-l:MultipleBrowserInstanceCacheFix

Conversation

@saul-l

@saul-l saul-l commented Aug 11, 2025

Copy link
Copy Markdown

Multiple browser instances didn't work before. This assigns random cache folder for each browser client and seems to work fine.

@saul-l

saul-l commented Aug 12, 2025

Copy link
Copy Markdown
Author

Wasn't sure if cache folders are automatically deleted on all platforms (likely not), so I added automatic deletion to OnDestroy(). I think this should be fine default behavior, but could be further improved by making it optional.

@Voltstro Voltstro left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While I am happy to take in a feature where UWB does this, I don't want to break current behavior where UWB will use <AdditionalFilesDirectory>/UWBCache. This should all be done via a boolean (E.G: randomCachePath), and also should be done in the WebBrowserClient class rather then BaseUwbClientManager class.

Also I'm sorry that it has taken me until now to review this.

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.

2 participants