Introduce config caching (#3131)

* Introduce config caching

* Changelog

* Update CHANGELOG.md

Co-authored-by: bjoern <r10s@b44t.com>

* Cache a value after reading it

Co-authored-by: bjoern <r10s@b44t.com>
This commit is contained in:
Hocuri
2022-03-21 11:13:43 +01:00
committed by GitHub
parent 7d26968bb3
commit 321e3e27de
4 changed files with 33 additions and 1 deletions

View File

@@ -84,6 +84,7 @@ async fn reset_tables(context: &Context, bits: i32) {
)
.await
.unwrap();
context.sql().config_cache().write().await.clear();
context
.sql()
.execute("DELETE FROM leftgrps;", paramsv![])