diff options
author | louiz’ <louiz@louiz.org> | 2017-08-26 13:51:15 +0200 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2017-08-26 13:51:15 +0200 |
commit | 655151d88a6ab948949b73682c3a76a0274eb10c (patch) | |
tree | a6c00cbb46c6b142e82bd860914af1d62587b650 /src/xmpp | |
parent | 1997fb5c6a5f791960575a31bd34dfd24cf96a26 (diff) | |
download | biboumi-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.cpp | 4 |
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; |