Don't commit updated DiskSpace to the db. If we want to do that, we can call Save. This prevents UI from hanging waiting for this update to happen

pull/4413/head
Isaac Connor 2025-08-07 11:29:46 -04:00
parent 1a8847f686
commit 2ba42345a7
1 changed files with 1 additions and 1 deletions

View File

@ -314,7 +314,7 @@ class Event extends ZM_Object {
$this->{'DiskSpace'} = folder_size($this->Path());
if ($this->{'EndDateTime'} and $this->{'DiskSpace'}) {
# Finished events shouldn't grow in size much so we can commit it to the db.
dbQuery('UPDATE Events SET DiskSpace=? WHERE Id=?', array($this->{'DiskSpace'}, $this->{'Id'}));
#dbQuery('UPDATE Events SET DiskSpace=? WHERE Id=?', array($this->{'DiskSpace'}, $this->{'Id'}));
}
}
return $this->{'DiskSpace'};