performance optimizations

This commit is contained in:
Frank Schubert
2022-02-15 22:26:10 +01:00
parent dd6f171ee1
commit fa3dec263f
10 changed files with 82 additions and 23 deletions
+8
View File
@@ -282,7 +282,15 @@ class Termination extends mfBaseModel {
}
if($name == "creator") {
$user = mfValuecache::get("Worker-id-".$this->create_by);
if($user) {
$this->creator = $user;
return $this->creator;
}
$this->creator = new User($this->create_by);
if($this->creator->id) {
mfValuecache::set("Worker-id-".$this->create_by, $this->creator);
}
return $this->creator;
}