aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/system_log.php
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-09-17 11:05:10 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-09-17 11:05:10 +0000
commitcc6b5e6e771475476b90c37a0d34e3d1c88930cc (patch)
tree71c2523cd67850ce098e644f23a128bcd425696f /engine/lib/system_log.php
parentea21f84fa22b82b2b16dc190d57fd87553d3bc79 (diff)
downloadelgg-cc6b5e6e771475476b90c37a0d34e3d1c88930cc.tar.gz
elgg-cc6b5e6e771475476b90c37a0d34e3d1c88930cc.tar.bz2
System log now using delayed writes.
git-svn-id: https://code.elgg.org/elgg/trunk@2085 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/system_log.php')
-rw-r--r--engine/lib/system_log.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/lib/system_log.php b/engine/lib/system_log.php
index 3949fc1c8..1cbc5265f 100644
--- a/engine/lib/system_log.php
+++ b/engine/lib/system_log.php
@@ -186,7 +186,7 @@
// Create log if we haven't already created it
if (!isset($logcache[$time][$object_id][$event])) {
- if (insert_data("INSERT into {$CONFIG->dbprefix}system_log (object_id, object_class, event, performed_by_guid, time_created) VALUES ('$object_id','$object_class','$event',$performed_by, '$time')")) {
+ if (insert_data("INSERT DELAYED into {$CONFIG->dbprefix}system_log (object_id, object_class, event, performed_by_guid, time_created) VALUES ('$object_id','$object_class','$event',$performed_by, '$time')")) {
$logcache[$time][$object_id][$event] = true;
return true;
}