mirror of
https://github.com/turt2live/matrix-dimension.git
synced 2024-09-03 07:32:05 +00:00
Clear the token cache when creating upstreams
Otherwise we'll flood ourselves with token errors in the backend
This commit is contained in:
parent
e490007cec
commit
a1210761eb
@ -1,6 +1,6 @@
|
||||
import { GET, Path, POST, QueryParam } from "typescript-rest";
|
||||
import { AdminService } from "./AdminService";
|
||||
import { Cache, CACHE_UPSTREAM } from "../../MemoryCache";
|
||||
import { Cache, CACHE_SCALAR_ACCOUNTS, CACHE_UPSTREAM } from "../../MemoryCache";
|
||||
import Upstream from "../../db/models/Upstream";
|
||||
import { LogService } from "matrix-js-snippets";
|
||||
|
||||
@ -54,6 +54,7 @@ export class AdminUpstreamService {
|
||||
|
||||
LogService.info("AdminUpstreamService", userId + " created a new upstream");
|
||||
Cache.for(CACHE_UPSTREAM).clear();
|
||||
Cache.for(CACHE_SCALAR_ACCOUNTS).clear();
|
||||
return this.mapUpstream(upstream);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user