mirror of
https://github.com/chatmail/core.git
synced 2026-04-22 16:06:30 +03:00
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:
@@ -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![])
|
||||
|
||||
Reference in New Issue
Block a user