Skip to content

Commit

Permalink
Merge pull request #9493 from jdalsem/system-log-delayed
Browse files Browse the repository at this point in the history
chore(db): no longer use INSERT DELAYED query writing to system_log
  • Loading branch information
juho-jaakkola committed Mar 16, 2016
2 parents abe982e + 7a45842 commit 094ce5c
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 094ce5c

Please sign in to comment.