performance optimizations
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user