Middlewares loading from DB seems to be ok since restarting pods/server seems to repair everything, but middlewares cache update related code doesn't work.
This can cause null/empty WS call, webchat publish desync, ...
To reproduce :
Create a new chatbot
Add webchat and json-ws plugin
Set json-ws with invalid parameters
Send a few chatbot test to check that WS doesn't work
Edit json-ws to fix parameters
Re-send a few messages - They will not trigger the WS
Middlewares handling seems to be pretty flacky.
Middlewares loading from DB seems to be ok since restarting pods/server seems to repair everything, but middlewares cache update related code doesn't work.
This can cause null/empty WS call, webchat publish desync, ...
To reproduce :