/** * Site model is cached in the session so we need to reload the static variables * on wake up. */ public function __wakeup() { parent::__wakeup(); $this->_loadFields(); }