From cc0c92764582617867483e42d0ca9803206dc36c Mon Sep 17 00:00:00 2001 From: marcus Date: Thu, 6 Nov 2008 14:20:05 +0000 Subject: Last action query update delayed to avoid invalidating query cache unnecessarily. git-svn-id: https://code.elgg.org/elgg/trunk@2415 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/users.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'engine') diff --git a/engine/lib/users.php b/engine/lib/users.php index 82b7cef12..37a6b5bbd 100644 --- a/engine/lib/users.php +++ b/engine/lib/users.php @@ -1237,7 +1237,8 @@ $user_guid = (int) $user_guid; global $CONFIG; $time = time(); - update_data("update {$CONFIG->dbprefix}users_entity set prev_last_action = last_action, last_action = {$time} where guid = {$user_guid}"); + + execute_delayed_write_query("UPDATE {$CONFIG->dbprefix}users_entity set prev_last_action = last_action, last_action = {$time} where guid = {$user_guid}"); } -- cgit v1.2.3