performance optimizations
This commit is contained in:
@@ -4,11 +4,11 @@ class LineworkController extends mfBaseController {
|
||||
|
||||
protected function init() {
|
||||
$this->needlogin=true;
|
||||
$me = mfValuecache::get("me");
|
||||
$me = mfValuecache::singleton()->get("me");
|
||||
if(!$me) {
|
||||
$me = new User();
|
||||
$me->loadMe();
|
||||
mfValuecache::set("me", $this->me);
|
||||
mfValuecache::singleton()->set("me", $this->me);
|
||||
}
|
||||
$this->me = $me;
|
||||
$this->layout()->set("me",$me);
|
||||
|
||||
Reference in New Issue
Block a user