From 3b8fb7bb88cf0104040ad4a5039a3eeb293c99d4 Mon Sep 17 00:00:00 2001 From: Adam Date: Wed, 24 Oct 2012 22:48:12 -0400 Subject: [PATCH] When db_sql_live gets new objects immediately update cache on them to prevent rewriting later if they aren't changed --- modules/database/db_sql_live.cpp | 1 + 1 file changed, 1 insertion(+) 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