doclin-dev / doclin

Server and VS Code Extension of Doclin
https://doclin.dev
GNU Affero General Public License v3.0
45 stars 22 forks source link

Conflict between extension cache of different host #161

Open shawonibnkamal opened 1 month ago

shawonibnkamal commented 1 month ago

If multiple hosts are being used on doclin extension e.g. api.doclin.dev and localhost. The caches can conflict when the projectId is same.

To re-create the issue, create a project on api.doclin.dev (e.g. project id 3). If you create a project on localhost with the same id. The original cache will get overwritten. It will take a reload to fetch the right threads on the original project.

To solve this, we need to improve the key used in caching. Should include both organization id and project id as key for AllThreadsCacheManager.ts