summaryrefslogtreecommitdiff
path: root/src/xmpp
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2017-08-26 13:51:15 +0200
committerlouiz’ <louiz@louiz.org>2017-08-26 13:51:15 +0200
commit655151d88a6ab948949b73682c3a76a0274eb10c (patch)
treea6c00cbb46c6b142e82bd860914af1d62587b650 /src/xmpp
parent1997fb5c6a5f791960575a31bd34dfd24cf96a26 (diff)
downloadbiboumi-655151d88a6ab948949b73682c3a76a0274eb10c.tar.gz
biboumi-655151d88a6ab948949b73682c3a76a0274eb10c.tar.bz2
biboumi-655151d88a6ab948949b73682c3a76a0274eb10c.tar.xz
biboumi-655151d88a6ab948949b73682c3a76a0274eb10c.zip
Cache the encoding_in database value, to avoid doing a query for each message
Diffstat (limited to 'src/xmpp')
-rw-r--r--src/xmpp/biboumi_adhoc_commands.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xmpp/biboumi_adhoc_commands.cpp b/src/xmpp/biboumi_adhoc_commands.cpp
index 65f9966..d78dc98 100644
--- a/src/xmpp/biboumi_adhoc_commands.cpp
+++ b/src/xmpp/biboumi_adhoc_commands.cpp
@@ -430,7 +430,7 @@ void ConfigureIrcServerStep2(XmppComponent&, AdhocSession& session, XmlNode& com
options.col<Database::EncodingIn>() = value->get_inner();
}
-
+ Database::invalidate_encoding_in_cache();
options.save(Database::db);
command_node.delete_all_children();
@@ -599,7 +599,7 @@ bool handle_irc_channel_configuration_form(XmppComponent& xmpp_component, const
}
}
-
+ Database::invalidate_encoding_in_cache(requester.bare(), iid.get_server(), iid.get_local());
options.save(Database::db);
}
return true;