cgaspard / mantiskanban

Mantis Kanban that uses ajax and mantisconnect
45 stars 33 forks source link

Multiple Mantis instances and DOM CACHE #55

Open api984 opened 8 years ago

api984 commented 8 years ago

Hi,

Is there any chance to make mantisURL not to be cached in DOM?

I am using : /mkb /mkbu

so if I open tab or switch to the other DOM is caching server url/api/soap so I need to clear browser cache or use another browser for the 2nd instance.

thanks.

alorenc commented 8 years ago

Try replacing the "localStorage" to "sessionStorage" in the code.

Example (first textarea, uses sessionStorage - does not remember changes between tabs): http://www.javascriptkit.com/javatutors/domstorage.shtml

Is that what you meant?

cgaspard commented 7 years ago

Do you mean that you have multiple mantis urls and multiple kanban sessions connected to each? Right now its a one to one setup. 1 kanban to 1 mantis url. For now the best setup I can think of for you is to deploy two kanbans and point each to a different server.