memcache = new YaampMemcache; $this->t1 = microtime(true); if(user()->getState('yaamp_admin')) $this->admin = true; $algo = user()->getState('yaamp-algo'); if(!$algo) user()->setState('yaamp-algo', 'x11'); //$um = app()->getComponent('urlManager'); //var_dump($um); die; return true; } public function afterAction($action) { // debuglog("after action ".$action->getId()); $t2 = microtime(true); $d1 = $t2 - $this->t1; $url = "$this->id/{$this->action->id}"; $this->memcache->add_monitoring_function($url, $d1); //$um = app()->getComponent('urlManager'); //var_dump($um); die; } public function actionMaintenance() { $this->render('maintenance'); } }