--- trunk/tntnet/dynamic/temperaturegraph.ecpp 2007/12/02 16:56:14 122 +++ trunk/tntnet/dynamic/temperaturegraph.ecpp 2007/12/08 16:47:03 195 @@ -17,6 +17,8 @@ int id; <{ +reply.setHeader("Cache-Control", "no-cache, must-revalidate"); // Http/1.1 +reply.setHeader("Expires", "Mon, 26 Jul 1997 05:00:00 GMT"); //date in the past GD::Image image; image.CreateTrueColor( GD::Size(600,360)); @@ -49,7 +51,7 @@ ///////////////////////////////////////////////// -tntdb::Connection conn = tntdb::connect(dburl); +tntdb::Connection conn = tntdb::connectCached(dburl); std::stringstream query; query << "SELECT temperature FROM ( "; @@ -62,7 +64,7 @@ tntdb::Result res = conn.select(query.str()); GD::Point previous; -for (int i=0; i