aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/users.php
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-11-06 14:20:05 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-11-06 14:20:05 +0000
commitcc0c92764582617867483e42d0ca9803206dc36c (patch)
tree8851917cb97405e4e7f09a987686b44f13dfdf1f /engine/lib/users.php
parent9863842d66cd8f8d95a86b8e14a134f722b9a2fd (diff)
downloadelgg-cc0c92764582617867483e42d0ca9803206dc36c.tar.gz
elgg-cc0c92764582617867483e42d0ca9803206dc36c.tar.bz2
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
Diffstat (limited to 'engine/lib/users.php')
-rw-r--r--engine/lib/users.php3
1 files changed, 2 insertions, 1 deletions
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}");
}