Skip to content

Commit

Permalink
chore(db): no longer use INSERT DELAYED query writing to system_log
Browse files Browse the repository at this point in the history
Ref #4993
  • Loading branch information
jdalsem committed Mar 16, 2016
1 parent c2b2f7f commit 7a45842
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions engine/lib/system_log.php
Expand Up @@ -239,14 +239,14 @@ function system_log($object, $event) {

// Create log if we haven't already created it
if (!isset($log_cache[$time][$object_id][$event])) {
$query = "INSERT DELAYED into {$CONFIG->dbprefix}system_log
$query = "INSERT into {$CONFIG->dbprefix}system_log
(object_id, object_class, object_type, object_subtype, event,
performed_by_guid, owner_guid, access_id, enabled, time_created, ip_address)
VALUES
('$object_id','$object_class','$object_type', '$object_subtype', '$event',
$performed_by, $owner_guid, $access_id, '$enabled', '$time', '$ip_address')";

insert_data($query);
execute_delayed_write_query($query);

$log_cache[$time][$object_id][$event] = true;
$cache_size += 1;
Expand Down

0 comments on commit 7a45842

Please sign in to comment.