summaryrefslogtreecommitdiff
path: root/modules/database/db_sql_live.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2012-10-24 22:48:12 -0400
committerAdam <Adam@anope.org>2012-10-24 22:48:12 -0400
commit3b8fb7bb88cf0104040ad4a5039a3eeb293c99d4 (patch)
treea349d262b3de6f4dd1dad443164b56f27f4b3a2c /modules/database/db_sql_live.cpp
parent1057fa842144e84563ddd887beaeaebe8c4f8a47 (diff)
When db_sql_live gets new objects immediately update cache on them to prevent rewriting later if they aren't changed
Diffstat (limited to 'modules/database/db_sql_live.cpp')
-rw-r--r--modules/database/db_sql_live.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/database/db_sql_live.cpp b/modules/database/db_sql_live.cpp
index 9b683481b..1b4b7c6cd 100644
--- a/modules/database/db_sql_live.cpp
+++ b/modules/database/db_sql_live.cpp
@@ -210,6 +210,7 @@ class DBMySQL : public Module, public Pipe
{
new_s->id = id;
obj->objects[id] = new_s;
+ new_s->UpdateCache(); /* We know this is the most up to date copy */
}
}
else